Conversion of EPS to JPG file generates zero byte file

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Conversion of EPS to JPG file generates zero byte file

Post by fmw42 »

Your eps files are cmyk and need to be converted to sRGB. Try

convert -colorspace sRGB VectorWebconsSet.eps VectorWebconsSet.jpg

It works for me on IM 6.8.8.2 Q16 Mac OSX.

If that fails, then be sure you have Ghostscript installed.

convert -version

should list the delegates, unless you have too old a version of IM.
Carter J
Posts: 116
Joined: 2013-12-19T02:20:09-07:00
Authentication code: 6789

Re: Conversion of EPS to JPG file generates zero byte file

Post by Carter J »

Thanks for the reply.

I have tried plain convert command for converting EPS file to JPG file. In this case also the output is same.
Convert VectorWebconsSet.eps VectorWebconsSet.jpg

Command: convert -version
Version: ImageMagick 6.8.7-5 Q16 x86_64 2013-11-07 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp wmf x xml zlib


Ghost Script Version:
Command: gs -v
GPL Ghostscript 8.70 (2009-07-31)
Copyright (C) 2009 Artifex Software, Inc. All rights reserved.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Conversion of EPS to JPG file generates zero byte file

Post by fmw42 »

Again your eps files are CMYK. You need to convert to sRGB jpg. Many viewers cannot display cmyk jpg properly.

In IM 6.8.8.3 Q16 Mac OSX Snow Leopard with gs 9.06, the following works fine for me.

convert -colorspace sRGB VectorWebconsSet.eps VectorWebconsSet.jpg

or use profiles.

Perhaps you need to upgrade your gslib (ghostscript)
Carter J
Posts: 116
Joined: 2013-12-19T02:20:09-07:00
Authentication code: 6789

Re: Conversion of EPS to JPG file generates zero byte file

Post by Carter J »

I have tried the following command as you suggested. I am not able to produce JPG file have size greater than 0 bytes.

convert -colorspace sRGB VectorWebconsSet.eps VectorWebconsSet.jpg

I am using Linux Machine and Its release is 2.6.32-279.9.1.el6.x86_64

Might there be any other reason for this strange behavior...........:(
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Conversion of EPS to JPG file generates zero byte file

Post by fmw42 »

Carter J wrote:I have tried the following command as you suggested. I am not able to produce JPG file have size greater than 0 bytes.

convert -colorspace sRGB VectorWebconsSet.eps VectorWebconsSet.jpg

I am using Linux Machine and Its release is 2.6.32-279.9.1.el6.x86_64

Might there be any other reason for this strange behavior...........:(

I suggest you upgrade either or both IM or Ghostscript. Perhaps IM had a bug or is mis-configured or GS is too old.
Carter J
Posts: 116
Joined: 2013-12-19T02:20:09-07:00
Authentication code: 6789

Re: Conversion of EPS to JPG file generates zero byte file

Post by Carter J »

Hi,

We have upgraded both ImageMagick and Ghostscript and still facing the same issue

Version: ImageMagick 6.8.8-7 Q16 x86_64 2014-02-17 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype fpx gslib jng jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp wmf x xml zlib

$ gs -v
GPL Ghostscript 9.10 (2013-08-30)
Copyright (C) 2013 Artifex Software, Inc. All rights reserved.

Any insight?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Conversion of EPS to JPG file generates zero byte file

Post by fmw42 »

Is your libjpeg up to date?

If it is and you are still having trouble, then check to be sure you do not have multiple versions of IM installed. If that is not the case, post a link to one of your troublesome eps files so others can test with it. You can upload to dropbox.com (public folder) and put a link here.
Carter J
Posts: 116
Joined: 2013-12-19T02:20:09-07:00
Authentication code: 6789

Re: Conversion of EPS to JPG file generates zero byte file

Post by Carter J »

Hi fmw42,

The libjpeg version is libjpeg.so.62.0.0.

And We have only one version of ImageMagick on our machine and the version of the IM is:
convert -version
Version: ImageMagick 6.8.8-7 Q16 x86_64 2014-02-17 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype fpx gslib jng jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp wmf x xml zlib


Is there any other reason of this issue????

Initially we have installed 6.5.4, Later we have upgraded the version to 6.8.7-5 and now we are using the version 6.8.8-7.

And how can we know multiple versions of IM installed?????

Thanks in advance.

Regards,
Carter J
rich2005
Posts: 32
Joined: 2012-04-09T11:07:36-07:00
Authentication code: 8675308

Re: Conversion of EPS to JPG file generates zero byte file

Post by rich2005 »

Working here in a linux, PClinuxOS 32 bit, IM 6.8.0 , Ghostscript 9.06

as this screenshot: http://i.imgur.com/CkyQIHY.jpg

Might be a 64 bit libraries issue.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Conversion of EPS to JPG file generates zero byte file

Post by snibgo »

The first PDF in the OP converts fine for me, 64-bit IM v6.8.9-5 on Windows 8.1. (IM no longer tells me the GS version. Dunno why.)
snibgo's IM pages: im.snibgo.com
Carter J
Posts: 116
Joined: 2013-12-19T02:20:09-07:00
Authentication code: 6789

Re: Conversion of EPS to JPG file generates zero byte file

Post by Carter J »

I have upgraded my IM to 6.8.9-7 version and even updated my GhostScript version to 9.10

Then also I am facing same issue. Conversion of EPS to JPG generating zero byte file.

@snibgo & @fmw42, For Each upgrade of will the libjpeg will update?????????

ls -l libjpeg*
lrwxrwxrwx 1 root root 17 Mar 21 09:25 libjpeg.so -> libjpeg.so.62.0.0
lrwxrwxrwx 1 root root 17 Mar 21 09:25 libjpeg.so.62 -> libjpeg.so.62.0.0
-rwxr-xr-x 1 root root 265280 Nov 27 2013 libjpeg.so.62.0.0

If it is not the latest version, then please let me know the latest version of libjpeg file.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Conversion of EPS to JPG file generates zero byte file

Post by fmw42 »

libjpeg 62 is old. I am using 90. See if upgrading your libjpeg helps.
rich2005
Posts: 32
Joined: 2012-04-09T11:07:36-07:00
Authentication code: 8675308

Re: Conversion of EPS to JPG file generates zero byte file

Post by rich2005 »

I do not think the linux system has caught up to version 90 yet

The base libjpeg.so.62 is usually a symlink to the executable. In PClinuxOS this is libjpeg.so.62.1.0.

Is this the most recent package? I do not know but Debian experimental is on that version.

screenshot http://i.imgur.com/iia7S1i.jpg

I think if I was having these problems I would be contacting the maintainers of whichever distro it is.
Post Reply