Re: image offset
mick crane <[email protected]> Thu, 11 Jul 2019 16:49:43 +0100
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
On 2019-07-11 14:30, Bob Friesenhahn wrote: > On Thu, 11 Jul 2019, mick crane wrote: >> >> the images are all over the place. >> >> I think what I want is -repage to get rid of the offset. >> I'm uncertain what the offset is supposed to do because same image >> with or without seems to make no difference in the viewer. >> I'm not that good at Perl and need advice how to translate the gm >> instructions into Perl syntax. >> where would I put "-repage" ? >> I also don't know how the actual .png files are constructed and >> wouldn't mind a link to some resource that might help me understand >> how all these image files work. > > It is interesting that PNG stores these offsets and that the offsets > are sometimes used when the file is later used. > > I am not completely certain, but it may be that if you first set the > image 'gravity' attribute to 'Forget' or 'NorthWest' and then set the > 'page' attribute to a geometry like "+0+0" you will achive success. > This is based on reading the GetImageGeometry() code in magick/image.c > and the SetAttribute() code in PerlMagick/Magick.xs pertaining to the > "page" attribute. > > Bob I will try things you suggest with "stab in the dark" syntax. It seems that the new images try to relate themselves to the parent image. Whereas I want to say " you are free" and a thing in your own right. -- Key ID 4BFEBB31