Calaix de sastre

Calaix de sastre joan dv., 18/01/2019 - 13:37

Adjuntar un fitxer a una campanya de mailchimp

Adjuntar un fitxer a una campanya de mailchimp

Si volem adjuntar un o més arxius a una campanya de mailchimp, ho podem fer creant un enllaç, tant de fitxers que tinguem en una ubicacio externa (Drive, Dropbox, la nostra web...) com si volem usar el sistema que mailchimp te integrat, i que serà l'opcio més senzilla.

Anem a veure com podem fer-ho...

  1. Per començar creem una campanya regular (Regular campaign), seguint els passos habituals, fins que arribem a la pantalla de "Design", que és la que ens permet posar el redactat, el cos del missatge, les imatges, etc. Allà editem el text a on volem enllaçar el nostre fitxer, per exemple, redactem el text "cliqui aquí per descarregar el fitxer", seleccionem el text (com si volguessim posar-li negreta, per exemple) i cliquem la icona en forma de cadena de "Insereix/Edita enllaç", que podeu veure en la següent imatge:
  2. Llavors s'us obrirà una finestra a on podrieu posar la URL o adreça del fitxer que voleu enllaçar, pero en en nostre cas, canviarem l'opció per defecte "Web Address" per "File" (fitxer), que ens obrirà una nova finestra a on...
  3. podrem triar algun dels fitxers que ja tenim al servidor de mailchimp o, com en el nostre cas, pujar un fitxer nou. per fer-ho, cal usar el botó "Upload" (carregar/pujar) o, simplement, arrossegar el fitxer des del nostre ordinador a la finestra de mailchimp
  4. Llavors, recuperarem la finestra anterior, amb la URL del nou fitxer, a on cladrà que cliquem "Insert" perquè ens crei l'enllaç

I aixo és tot!

Les estadístiques de les campanyes, que tenen en compte els clics als enllaços, ens informarà de quants cops l'han clicat, etc.

joan dl., 19/10/2015 - 16:12

Suggestions to insert images on the web

Suggestions to insert images on the web

Here you are some basic guidelines to insert images on the web.

A main goal is get less size files as possible

Formats

  • jpg:

    • is used for photos (best than gif)
    • has a good compresion rate (best than png)
    • can not manage transparency (gif can)
    • is not a libre format
  • gif

    • is used in logos, draws, but not for photos (best than jpg)
    • is not a libre format
    • can manage transparency (jpg can not)
    • has a good compresion rate
  • png

    • is a libre (free²) format
    • has a worse compresion rate (than jpg)
    • can manage transparency

Size

You must remember you don't need a big image. Don't need very hight resolution because images print in screen, not in paper (in this cas, you need it). Thinsk about screen size and you get the answer to the question of "which is the best size?". If screens have 1200 or 1600px, you don't need more... Even, you usually don't use a image to cover all the screen, do you? Then with, for example, 800px by side, you usually get a proper image.

Ps: remeber, a lot of image viewers don't show images in a 1:1 scale. Check it when open files in your viewer...

Usually, web images have between 15-100kb. That's ok. A 600kb image is not suitable. You want your web load quickly!

Software

You can use the free, opensource and multiplatform Gimp. It's a wonderfull program, with similar features than photoshop (almost for 99% of users). It's a complex program, but the crop and resize options are easy. You can also covert to alfa (make transparent) a part of the image.

If you use linux an easy way to resize an image is using nautilus addons, for example. As simple as using a mouse right clic option when you are browsing your image directory :-)

joan dl., 08/11/2010 - 19:49

HOWTO: convert all otf / ttf in a folder to woff (batch) using a linux terminal

HOWTO: convert all otf / ttf in a folder to woff (batch) using a linux terminal
  • We need sfnt2woff tool (we can install Debian package woff-tools to have it)
  • At folder where some .ttf or otf files are, we create a new text file, for example otf2woff.sh to convert otf files, with this line:

for file in *.ttf; do sfnt2woff $file; done

  • then, we should add execution right to our file:

chmod a+x otf2woff.sh

  • and, finally, execute our bash script:

./otf2woff.sh

Ps: Two sample script files attached here ;-)

 

joan dc., 25/01/2017 - 18:06
Adjunts
Adjunt Mida
otf to woff batch bash script (44 bytes) 44 bytes
ttf to woff batch bash script (44 bytes) 44 bytes