yochju / latex-makefile

Automatically exported from code.google.com/p/latex-makefile
Other
0 stars 0 forks source link

Add jpg->eps conversion support #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Attached is a possible patch for automatic conversion of jpg->eps.  Use
postscript level 2 so that it's just wrapperized jpeg--no file size bloat.
 Most of it is just blindly copying what's already done for png.  The guts are

+define convert-jpg
+convert \
+       $(if $3,-type Grayscale,) \
+       "$1" eps2:"$2"
+endef

Ref: http://www.imagemagick.org/Usage/formats/#eps (but confusingly I had
to remove the "-compress none" option in order to get true jpeg compression...)

Original issue reported on code.google.com by bruba...@gmail.com on 9 Nov 2009 at 6:54

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the really good patch!  I have incorporated it with minor changes in 
r340a49683c95.  If you wouldn't mind having a look at the diff and trying it 
out, I'd be 
grateful.

If all's well, I'll upload the new version.

Original comment by shiblon on 15 Nov 2009 at 4:01

GoogleCodeExporter commented 9 years ago
Yep, tested r340a49683c95 and it works fine.  Thanks!

Original comment by bruba...@gmail.com on 16 Nov 2009 at 6:32

GoogleCodeExporter commented 9 years ago
Thanks for the excellent patch.

Original comment by shiblon on 17 Nov 2009 at 5:59