that's true up to a point - the image itself has as many dots as it has - but a computer image file does tend to have a resolution, among other bits of metadata. It doesn't make any difference to browser display, or to the image data itself, but it makes a large and sometimes costly difference to the way the image appears as soon as it is printed or converted. In a print context there's no necessary coupling between size of image and number of pixels, and getting the best out of lines and screens and resolutions is a black and dying art.

it sounds like the destination for Angel's pictures is a setting that cares about image resolution and does not wish to open and redescribe every image so that it prints correctly.

but the answer is simple: you can set the resolution with perlmagick using the density attribute. i've just run a quick test using:

#!/usr/bin/perl use Image::Magick; my $image=Image::Magick->new; $image->Read(filename => 'amnesty.jpg'); $image->Set( density => '288x288' ); $image->Write( filename => 'test/test.jpg' ); $image->Write( filename => 'test/test.tiff' ); $image->Write( filename => 'test/test.gif' ); $image->Write( filename => 'test/test.png' ); undef @$image;

and the resolution seems to be updated correctly in every case except the gif, which would figure.

the resulting images can be pulled straight into quark and work as expected, but there is trouble with photoshop, which has its own embraced-and-extended notion of where metadata should be stored and seems to ignore the imagemagick profile. more about that on the mailing list.


In reply to Re: •Re: IMAGE MAGIK / GIMP/ IMAGES by thpfft
in thread ImageMagick / Gimp / Images by Angel

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.