identify/convert give wrong size of eps file
Posted: 2012-03-09T03:46:07-07:00
I use ImageMagick-6.7.5.7 on FreeBSD 10 -current.
I've a large eps file, converted from a raster image:
% ls -al bile_acid.eps
-rwxr-xr-x 1 mexas wheel 3428323 Mar 22 2011 bile_acid.eps
% identify bile_acid.eps
bile_acid.eps PS 595x842 595x842+0+0 16-bit DirectClass 43.6KB 0.000u 0:00.007
^^^^^^^
The size is wrong:
% head bile_acid.eps
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: GIMP PostScript file plugin V 1.17 by Peter Kirchgessner
%%Title: bile_acid.eps
%%CreationDate: Tue Mar 22 19:44:00 2011
%%DocumentData: Clean7Bit
%%LanguageLevel: 2
%%Pages: 1
%%BoundingBox: 14 14 1599 2379
^^^^^^^^^^^^^^^
The size returned by identify doesn't correspond
to the size given in the eps itself.
When I open the eps file with gv, the whole of
the file is shown and the size is displayed correctly.
When I convert the eps file to something else,
only a 595x842 portion of the original image is converted,
the rest is ignored:
% convert bile_acid.eps bile_acid.jpeg
% identify bile_acid.*
bile_acid.eps PS 595x842 595x842+0+0 16-bit DirectClass 43.6KB 0.000u 0:00.015
bile_acid.jpeg[1] JPEG 595x842 595x842+0+0 8-bit DirectClass 24.5KB 0.000u 0:00.000
%
The source eps: http://seis.bris.ac.uk/~mexas/bile_acid.eps
The resulting jpeg: http://seis.bris.ac.uk/~mexas/bile_acid.jpeg
I've a large eps file, converted from a raster image:
% ls -al bile_acid.eps
-rwxr-xr-x 1 mexas wheel 3428323 Mar 22 2011 bile_acid.eps
% identify bile_acid.eps
bile_acid.eps PS 595x842 595x842+0+0 16-bit DirectClass 43.6KB 0.000u 0:00.007
^^^^^^^
The size is wrong:
% head bile_acid.eps
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: GIMP PostScript file plugin V 1.17 by Peter Kirchgessner
%%Title: bile_acid.eps
%%CreationDate: Tue Mar 22 19:44:00 2011
%%DocumentData: Clean7Bit
%%LanguageLevel: 2
%%Pages: 1
%%BoundingBox: 14 14 1599 2379
^^^^^^^^^^^^^^^
The size returned by identify doesn't correspond
to the size given in the eps itself.
When I open the eps file with gv, the whole of
the file is shown and the size is displayed correctly.
When I convert the eps file to something else,
only a 595x842 portion of the original image is converted,
the rest is ignored:
% convert bile_acid.eps bile_acid.jpeg
% identify bile_acid.*
bile_acid.eps PS 595x842 595x842+0+0 16-bit DirectClass 43.6KB 0.000u 0:00.015
bile_acid.jpeg[1] JPEG 595x842 595x842+0+0 8-bit DirectClass 24.5KB 0.000u 0:00.000
%
The source eps: http://seis.bris.ac.uk/~mexas/bile_acid.eps
The resulting jpeg: http://seis.bris.ac.uk/~mexas/bile_acid.jpeg