Hi Troels,

If you install Imagemagick (http://www.imagemagick.org/), you will
have a far more powerful tool for creating icons and graphics.  For
example this creates a good 16x16 sized square icon without
distortions:

$ convert -blur 20x20 -interpolative-resize 16x16 -virtual-pixel white
-set option:distort:viewport
"%[fx:max(w,h)]x%[fx:max(w,h)]-%[fx:max((h-w)/2,0)]-%[fx:max((w-h)/2,0)]"
-filter point -distort SRT 0  +repage nmrglue_logo.svg
nmrglue_logo_16x16.png

And for a great 128x128 icon:

$ convert -blur 2x2 -interpolative-resize 128x128 -virtual-pixel white
-set option:distort:viewport
"%[fx:max(w,h)]x%[fx:max(w,h)]-%[fx:max((h-w)/2,0)]-%[fx:max((w-h)/2,0)]"
-filter point -distort SRT 0  +repage nmrglue_logo.svg
nmrglue_logo_128x128.png

I've played with the blurring to try to fix the pixelated icon look
(there are plenty of other tricks in Imagemagick to produce even
better looking small icons, but I haven't used these for the other
relax icons).  Some of these ideas are from
http://www.imagemagick.org/Usage/thumbnails/#square.

Regards,

Edward

On 8 December 2014 at 19:30,  <tlin...@nmr-relax.com> wrote:
> Author: tlinnet
> Date: Mon Dec  8 19:30:31 2014
> New Revision: 27030
>
> URL: http://svn.gna.org/viewcvs/relax?rev=27030&view=rev
> Log:
> Added commands to README file, how the resizing of images was done.
>
> Task #7873 (https://gna.org/task/index.php?7873): Write wrapper function to 
> nmrglue, to read .ft2 files and process them.
> Homepage: http://www.nmrglue.com/
> Link to nmrglue discussion: 
> https://groups.google.com/forum/#!forum/nmrglue-discuss
> The code is develop at Github: https://github.com/jjhelmus/nmrglue/
> Google code: https://code.google.com/p/nmrglue/
> Documentation: http://nmrglue.readthedocs.org/en/latest/index.html
>
> Modified:
>     branches/nmrglue/graphics/extern/nmrglue/README.txt
>
> Modified: branches/nmrglue/graphics/extern/nmrglue/README.txt
> URL: 
> http://svn.gna.org/viewcvs/relax/branches/nmrglue/graphics/extern/nmrglue/README.txt?rev=27030&r1=27029&r2=27030&view=diff
> ==============================================================================
> --- branches/nmrglue/graphics/extern/nmrglue/README.txt (original)
> +++ branches/nmrglue/graphics/extern/nmrglue/README.txt Mon Dec  8 19:30:31 
> 2014
> @@ -9,3 +9,39 @@
>  rm master.zip
>  mv nmrglue_logo-master/* .
>  rmdir nmrglue_logo-master
> +
> +# Make 200x wide
> +inkscape -z -e nmrglue_logo_200x.png -w 200 nmrglue_logo.svg
> +inkscape -z -E nmrglue_logo_200x.eps -w 200 nmrglue_logo.svg
> +gzip nmrglue_logo_200x.eps
> +
> +set s=16
> +mkdir -p ${s}x${s}
> +inkscape -z -e ${s}x${s}/nmrglue_logo.png -w ${s} -h ${s} nmrglue_logo.svg
> +inkscape -z -E ${s}x${s}/nmrglue_logo.eps -w ${s} -h ${s} nmrglue_logo.svg
> +gzip ${s}x${s}/nmrglue_logo.eps
> +
> +set s=22
> +mkdir -p ${s}x${s}
> +inkscape -z -e ${s}x${s}/nmrglue_logo.png -w ${s} -h ${s} nmrglue_logo.svg
> +inkscape -z -E ${s}x${s}/nmrglue_logo.eps -w ${s} -h ${s} nmrglue_logo.svg
> +gzip ${s}x${s}/nmrglue_logo.eps
> +
> +
> +set s=32
> +mkdir -p ${s}x${s}
> +inkscape -z -e ${s}x${s}/nmrglue_logo.png -w ${s} -h ${s} nmrglue_logo.svg
> +inkscape -z -E ${s}x${s}/nmrglue_logo.eps -w ${s} -h ${s} nmrglue_logo.svg
> +gzip ${s}x${s}/nmrglue_logo.eps
> +
> +set s=48
> +mkdir -p ${s}x${s}
> +inkscape -z -e ${s}x${s}/nmrglue_logo.png -w ${s} -h ${s} nmrglue_logo.svg
> +inkscape -z -E ${s}x${s}/nmrglue_logo.eps -w ${s} -h ${s} nmrglue_logo.svg
> +gzip ${s}x${s}/nmrglue_logo.eps
> +
> +set s=128
> +mkdir -p ${s}x${s}
> +inkscape -z -e ${s}x${s}/nmrglue_logo.png -w ${s} -h ${s} nmrglue_logo.svg
> +inkscape -z -E ${s}x${s}/nmrglue_logo.eps -w ${s} -h ${s} nmrglue_logo.svg
> +gzip ${s}x${s}/nmrglue_logo.eps
>
>
> _______________________________________________
> relax (http://www.nmr-relax.com)
>
> This is the relax-commits mailing list
> relax-comm...@gna.org
>
> To unsubscribe from this list, get a password
> reminder, or change your subscription options,
> visit the list information page at
> https://mail.gna.org/listinfo/relax-commits

_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-devel mailing list
relax-devel@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel

Reply via email to