Discussion:
convert eps files
Johan Wieland
2007-01-08 12:32:42 UTC
Permalink
Hello,


I installed Ghostscripts 8.54GPL, Imagemagick 6.3.1 with JPEG, LCMS
and TIFFsupport on a Linux Redhat Enterprise 4
and noticed that --with-gslib does not work (failed test), so i
compiled Imagemagick without-gsllib
Imagemagick has delegates.xml in /usr/local/share/ImageMagick-6.3.1/
config

we will translate Photoshop-CMYK -EPS files to highquality RGB Jpeg's,
but a EPS file of 15Mb is translated to a lowres-rgb jpeg (300Kb)

the convert commando:
convert -quality 100 picture.eps picture.jpg or
convert -quality 100 picture.eps picture.pdf

gives me the following messages (but creates the outputfiles)

convert: no decode delegate for this image format `/tmp/magick-
XXbhd5SU'.
convert: no decode delegate for this image format `/tmp/magick-
XXtq5Gjw'.
convert: Postscript delegate failed `/tmp/magick-XXtq5Gjw'.



what can be the reason of this behaviour ?

thanks in advance,

Johan Wieland
Hoofd Automatisering
--------------------------------------------
Comrads media solutions
Component 116
1446 WP Purmerend
Nederland

***@comrads.nl
Tel: +31 (0)29 9390472
Fax: +31 (0)299 422476190
Mobile: +31 (0)6 54228142
luis
2007-01-08 13:35:41 UTC
Permalink
Post by Johan Wieland
Hello,
I installed Ghostscripts 8.54GPL, Imagemagick 6.3.1 with JPEG, LCMS and
TIFFsupport on a Linux Redhat Enterprise 4
and noticed that --with-gslib does not work (failed test), so i compiled
Imagemagick without-gsllib
Imagemagick has delegates.xml in /usr/local/share/ImageMagick-6.3.1/config
we will translate Photoshop-CMYK -EPS files to highquality RGB Jpeg's,
but a EPS file of 15Mb is translated to a lowres-rgb jpeg (300Kb)
convert -quality 100 picture.eps picture.jpg or
What say
$ identify -verbose picture.eps

?
Post by Johan Wieland
convert -quality 100 picture.eps picture.pdf
You should not use IM to convert vector <-> vector images
use epstopdf

$ epstopdf picture.eps picture.pdf

Luis
--
Luis Belmar-Letelier
Johan Wieland
2007-01-08 14:05:05 UTC
Permalink
Identify -verbose picture.eps starts with the following output:

Image: golden.eps
Format: EPT (Encapsulated PostScript with TIFF preview)
Class: PseudoClass
Geometry: 512x384
Type: Palette
Endianess: MSB
Colorspace: RGB
Channel depth:
Red: 4-bit
Green: 4-bit
Blue: 4-bit
Channel statistics:
Red:
Min: 0 (0)
Max: 15 (1)
Mean: 7.97952 (0.531968)
Standard deviation: 3.96832 (0.264555)
Green:
Min: 0 (0)
Max: 15 (1)
Mean: 8.25281 (0.550188)
Standard deviation: 4.17659 (0.278439)
Blue:
Min: 0 (0)
Max: 15 (1)
Mean: 8.90351 (0.593568)
Standard deviation: 4.8517 (0.323446)


followed by a binary dump of the image, and ends with:
Tainted: False
Version: ImageMagick 6.3.1 01/07/07 Q16 http://www.imagemagick.org
identify: no decode delegate for this image format `/tmp/magick-
XXAMPPDd'.
identify: no decode delegate for this image format `/tmp/magick-
XXxo9jlt'.
identify: Postscript delegate failed `/tmp/magick-XXxo9jlt'.


Strange, in photoshop is the picture CMYK

this i not a vector image, but a eps, generated by Photoshop Macintosh.

greetings,

Johan
Post by luis
Post by Johan Wieland
Hello,
I installed Ghostscripts 8.54GPL, Imagemagick 6.3.1 with JPEG,
LCMS and TIFFsupport on a Linux Redhat Enterprise 4
and noticed that --with-gslib does not work (failed test), so i
compiled Imagemagick without-gsllib
Imagemagick has delegates.xml in /usr/local/share/
ImageMagick-6.3.1/config
we will translate Photoshop-CMYK -EPS files to highquality RGB Jpeg's,
but a EPS file of 15Mb is translated to a lowres-rgb jpeg (300Kb)
convert -quality 100 picture.eps picture.jpg or
What say
$ identify -verbose picture.eps
You should not use IM to convert vector <-> vector images
use epstopdf
$ epstopdf picture.eps picture.pdf
Luis
--
Luis Belmar-Letelier
Met vriendelijke groet,

Johan Wieland
Hoofd Automatisering
--------------------------------------------
Comrads media solutions
Component 116
1446 WP Purmerend
Nederland

***@comrads.nl
Tel: +31 (0)29 9390472
Fax: +31 (0)299 422476190
Mobile: +31 (0)6 54228142
Johan Wieland
2007-01-08 15:43:05 UTC
Permalink
eps is a vector format,
like pdf, ai, svg, fig, ...
I agree with that, but in the Prepress industry it is also used as an
binary image file format.
applications like Photoshop allow us to save images in that format,
to be imported in page layout applications (Indesign, Quark Xpress)

is the conclusion correct that ImageMagick / Ghostscript will not be
able to translate eps-images to rgb-jpegs?

greetings,

Johan Wieland
Mikolaj Machowski
2007-01-08 20:59:39 UTC
Permalink
Post by Johan Wieland
is the conclusion correct that ImageMagick / Ghostscript will not be
able to translate eps-images to rgb-jpegs?
IM can translate eps into bitmap formats (BTDT) but there can be various
problems with some epses.

m.
--
LaTeX + Vim = http://vim-latex.sourceforge.net/
Vim Universal Templates: http://vim.sf.net/script.php?script_id=1078
vim.pl - http://skawina.eu.org/mikolaj
CLEWN - http://clewn.sf.net
Anthony Thyssen
2007-01-09 03:04:41 UTC
Permalink
Johan Wieland on wrote...
|
| On Jan 8, 2007, at 4:35 PM, luis wrote:
|
| >
| >
| > eps is a vector format,
| >
| > like pdf, ai, svg, fig, ...
|
| I agree with that, but in the Prepress industry it is also used as an
| binary image file format.
| applications like Photoshop allow us to save images in that format,
| to be imported in page layout applications (Indesign, Quark Xpress)
|
| is the conclusion correct that ImageMagick / Ghostscript will not be
| able to translate eps-images to rgb-jpegs?
|
| greetings,
|
| Johan Wieland

Im can do the conversion. No problems. That is vector to Raster, and
that is what IM does.

However ALL converters (no just IM) will need info on what resolution or
density the postscript should be converted at.

If the postscript is written as vectors, the resolution to use is vital,
and converting at a higher resolution then shrinking using IM's resize
function, can make things look a lot better.

ASIDE: IM's resize function has be proved much better when compared to
photoshop, See
http://www.xs4all.nl/%7Ebvdwolf/main/foto/down_sample/down_sample.htm

However if the postscript itself is only a wrapper around a raster
image, than using a specific resolution may not extract the images
perfectly pixel to pixel.

This is where a non-simple 'image extraction' technique may be needed.



PEOPLE, please send in your 'postscript image wrapper' solutions, and
we may be able to design a special ps_image: input format delegate.


Ghostscript may may have something to do this, I don't know.

Also to think about...
Extraction of (multiple) images in the middle of postscript vector text...


Anthony Thyssen ( System Programmer ) <***@griffith.edu.au>
-----------------------------------------------------------------------------
Using encryption on the Internet is the equivalent of arranging an
armored car to deliver credit-card information from someone living in a
cardboard box to someone living on a park bench. -- Gene Spafford
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
Loading...