Posted: 2006-11-22T20:35:26-07:00
Photoshop saved resolution in a non-standard way in TIF files. That is the problem.
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://download.imagemagick.org/discourse-server/
https://download.imagemagick.org/discourse-server/viewtopic.php?t=7875
Code: Select all
(void) WriteBlobMSBShort(image,(unsigned short) x_resolution);
(void) WriteBlobMSBShort(image,0x0000);
(void) WriteBlobMSBShort(image,(unsigned short) y_resolution);
(void) WriteBlobMSBShort(image,0x0000);
Code: Select all
pixmap.horizontal_resolution=ReadBlobMSBLong(image); \
pixmap.vertical_resolution=ReadBlobMSBLong(image); \
Code: Select all
(void) WriteBlobMSBLong(image,(unsigned long) x_resolution);
(void) WriteBlobMSBLong(image,(unsigned long) y_resolution);
You're welcome.thank you for checking this out el_supremo
The IM guys are very good at fixing up reported bugs and issuing a new release of the code, so if you can recompile from source you may have a fix in a few days.I´ll have to wait till someone else fixes it... (If it will ever be done)
The problem I noted, with the way that WritePICTImage seems to write out the resolutions, may explain why PSP X cannot open the .pct file produced by "convert". It just says "An error has occurred while trying to read from the file" and gives up. It may be seeing the original 300dpi resolution as 300*65536 dpi and barfing.the GIMP can't open PCT pics