What is difference between geometry and base geometry in verbose info

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

What is difference between geometry and base geometry in verbose info

Post by fmw42 »

What is difference between geometry and base geometry in verbose info for an EPS file?

Image: test1.eps
Format: EPT (Encapsulated PostScript with TIFF preview)
Class: DirectClass
Geometry: 806x859+0+0
Base geometry: 3358x3580
Resolution: 300x300
Print size: 2.68667x2.86333
Units: PixelsPerInch
Colorspace: CMYK
Type: ColorSeparation


When I convert to PNG the result is equivalent to the base geometry. So what is the point of the geometry which is so different.

It appears that the Geometry is the equivalent size when using the default density of 72. Is that a correct interpretation?

3580*72/300=859
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: What is difference between geometry and base geometry in verbose info

Post by magick »

The base geometry is the width and height of the image when it is first read-- before any operations are performed on the image.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: What is difference between geometry and base geometry in verbose info

Post by fmw42 »

Then why does the image show a geometry that is different from the base geometry when read and nothing is done to it. It comes from identify -verbose
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: What is difference between geometry and base geometry in verbose info

Post by magick »

We would need to inspect the image before we can comment. Where can we download test1.pdf?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: What is difference between geometry and base geometry in verbose info

Post by fmw42 »

User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: What is difference between geometry and base geometry in verbose info

Post by magick »

Inspect test1.eps. The page width/height is extracted from this line:

Code: Select all

%ImageData: 3358 3580 8 4 1 3358 7 "beginimage"
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: What is difference between geometry and base geometry in verbose info

Post by fmw42 »

I do not see that line from identify -verbose test1.eps, but I do see a line

Page geometry: 806x859+0+0

which corresponds to the clip data line in the svg file

<svg xmlns="http://www.w3.org/2000/svg" width="806" height="859">

Both these correspond to the geometry.

As opposed to the base geometry which is 3358x3580.

So I suppose the geometry corresponds to the clip information and the base geometry is the original un-clipped size.
Post Reply