[magick-users] import oddity
Anthony Thyssen
anthony at griffith.edu.au
Tue Jul 25 16:10:18 PDT 2006
Carl Karsten on wrote...
| koyaanisqatsi at imagemagick.org wrote:
| >> The PNG file specifies an ofset that caused
| >
| > Try
| >
| > mogrify +repage yateclient1.png
| >
| > To reset the page offset.
| >
| >
| carl at amd15:/mnt/nfs/cw1b/carl/a$ mogrify +repage yateclient1.png
| carl at amd15:/mnt/nfs/cw1b/carl/a$ identify yateclient1.png
| yateclient1.png PNG 499x699 499x699+0+0 DirectClass 83kb
|
| That fixed it. which was my example... doh.
|
| If anyone wants an example of the 'odd' image:
| http://dev.personnelware.com/carl/temp/Jul25/a/importodd1.png
|
Your odd images (with offset) are standard. It is part of MNG
animation, just as GIF offsets are part of GIF animations.
In fact it is useful to be able to save offsets like this particualrly
for intermedita images, and is actually used in the IM examples for
Jigsaw Template handling...
http://www.cit.gu.edu.au/~anthony/graphics/imagick6/advanced/#jigsaw
See the last example using a 'jigsaw' script to join two images to
create a special image thumbnail.
Which reminds me, I need to add an 'invert template' option to the
jigsaw script to make this example simplier.
Any way not only are offsets useful, the later IM's also saves a extra
little extra info in PNG files to also save the virtual canvas size. Of
course only IM can use that little bit of info, but it does this.
It is just one more of the little undocumented features of the package.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
Before you find your handsome prince, you've got to kiss a lot of frogs.
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list