Hi!
I have another little problem. I'm processing some large images that I send
on to a printing company. I was handing over TIFFs, which was working fine -
but some of the TIFFs caused the printer software to crash. The only thing I
can think of is that there's some metadata in some of the sources images (we
get them from various people all over the world) that are carried over in
the final TIFF by VIPS. But instead of debugging fault-intolerant printer
software, I'm just sending high-quality JPEGs instead.
Which brings me to the point - with TIFF it's easy to set the DPI/PPI
setting when you save the file. This makes the printing business happy since
they can just press a button. But how do I do set the DPI for JPEGs?
I got so far that I think I need to set some magic metadata fields defined
by EXIF, but I can't really find any documentation about it and the metadata
stuff in VIPS doesn't appear to be available in the Python interface (?)
which makes testing with the rest of the pipeline I've built a bit difficult.
Note that this is just the DPI setting used for deriving the physical
dimensions of the image. I've got the actual image resolution in absolute
pixels totally under control. :-)
Ole
|