Page 1 of 1

Conversion of EPS to JPG file generates zero byte file

Posted: 2014-01-24T00:26:36-07:00
by Carter J

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

Posted: 2014-01-24T10:54:03-07:00
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.

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

Posted: 2014-01-29T09:41:38-07:00
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.

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

Posted: 2014-01-29T10:43:37-07:00
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)

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

Posted: 2014-01-29T22:00:48-07:00
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...........:(

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

Posted: 2014-01-29T22:17:05-07:00
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.

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

Posted: 2014-03-18T02:57:28-07:00
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?

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

Posted: 2014-03-18T10:19:34-07:00
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.

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

Posted: 2014-08-21T04:35:20-07:00
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

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

Posted: 2014-08-21T07:05:06-07:00
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.

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

Posted: 2014-08-21T07:48:14-07:00
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.)

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

Posted: 2014-08-27T06:42:24-07:00
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.

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

Posted: 2014-08-27T09:18:52-07:00
by fmw42
libjpeg 62 is old. I am using 90. See if upgrading your libjpeg helps.

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

Posted: 2014-08-28T08:47:29-07:00
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.