Greg Ercolano wrote:
> But I don't think we have to do /any/ conversions;
> according to some tests I tried, png, gif and jpeg
> all work fine in the "\image latex" line, eg:
>
> \image html tree-elements.png
> \image latex tree-elements.png
>
> \image html table-simple.gif
> \image latex table-simple.gif "table-simple example" width=6cm
>
> \image html fl_color_chooser.jpg
> \image latex fl_color_chooser.jpg "fl_color_chooser()" width=5cm
Actually, it seems png + jpg work fine, but gif doesn't seem to.
So I guess if we convert *.gif -> *.png, that'd work.
I'd leave the jpegs alone, as there's reasons for those to be jpegs.
(eg. colormap editor screenshot is a jpeg because it has a full color
ramp)
What's interesting is that just a default ImageMagick conversion of
gif -> png seems to make the images quite a bit smaller, with no
degrading:
/usr/local/src/fltk-1.3.x-svn/documentation/src
# convert table-simple.gif table-simple.png
/usr/local/src/fltk-1.3.x-svn/documentation/src
# ls -la table-simple*
-rw-r--r-- 1 root root 14676 Dec 5 08:15 table-simple.gif <-- original gif
-rw-r--r-- 1 root root 9630 Dec 7 09:41 table-simple.png <-- new png
That's 65% smaller; a decent savings.
I think the gif's colormap is preserved, just the png compression
is employed in place of gif's.
I just converted all the gifs to png just to see what the overall
compression is; it seems to be about 1/3 smaller:
/usr/local/src/fltk-1.3.x-svn/documentation/src
# mkdir gif png <-- make separate gif + png dirs
/usr/local/src/fltk-1.3.x-svn/documentation/src
# cp *.gif gif <-- all gifs into gifs dir
/usr/local/src/fltk-1.3.x-svn/documentation/src
# foreach i ( *.gif )
foreach? convert $i png/$i:r.png <-- convert all gifs to pngs
foreach? end
/usr/local/src/fltk-1.3.x-svn/documentation/src
# du -sh gif png
476K gif <-- just the gifs
360K png <-- png version of gifs
So I'd revise the suggestion to:
1) svn remove *.eps
2) convert all gifs -> png
3) svn remove *.gif
4) svn add *.png
5) For jpeg/png images, change all \image latex foo.eps .. ->
\image latex foo.[jpg,png] ..
6) For gif images, change all \image html foo.gif .. -> \image
html foo.png
and (harder to do): change \image latex foo.eps .. -> \image
latex foo.png ..
Assuming that's desirable, I can probably do this.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev