density change not showing in photoshop (8bim profile)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
pascal

density change not showing in photoshop (8bim profile)

Post by pascal » 2009-07-20T23:48:37-07:00

Hi

We use imagemagick to change the density of TIFF images. when opening those images with photoshop, the old value is still displayed.
This is behaviour as described in the documentation, i know. (identify also shows the wrong values btw.)

What can i do about it? I need photoshop to show proper values afterwards.
With a bit of try and error (i'm not really an expert on this topic) i found that it's the "8bim" profile which is read by photoshop to store the density information?

When i remove the 8bim profile, open in PS and save, then the 8bim profile gets re-created but this time the density values are ok.

Is removing the 8bim profile enough? What information do i loose by deleting the "8bim" profile (i keep the icc/iptc profiles)? What does Photoshop store in this profile?

thanks for hints, clarification and comments!

Pascal

User avatar
anthony
Posts: 8851
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: density change not showing in photoshop (8bim profile)

Post by anthony » 2009-07-21T05:15:54-07:00

Photoshop stores and uses density (resolution) settings in it own profile! It only uses the correctly defined density location when its own profile has been deleted (-strip).

It is a real pain in this regard!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
http://www.imagemagick.org/Usage/

pascal

Re: density change not showing in photoshop (8bim profile)

Post by pascal » 2009-07-21T13:07:00-07:00

hi anthony

thanks for your reply!


i think -strip is not an option since it also removes other profiles and exif and comments, right?

isn't there a more selective way to get photoshop to read the right numbers after density change?
and one thing i noticed: identify reads the same wrong numbers as photoshop. only after removing xmp and 8bim profiles both, identify and PS showed good values.

if i can not get it done in IM: is there another command line tool i could use to change density (resolution)?


thanks again!

pascal

User avatar
anthony
Posts: 8851
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: density change not showing in photoshop (8bim profile)

Post by anthony » 2009-07-21T17:42:21-07:00

Sorry no one has posted a general solution for setting photoshop resolution.

At least not yet!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
http://www.imagemagick.org/Usage/

pascal

Re: density change not showing in photoshop (8bim profile)

Post by pascal » 2009-07-22T02:00:35-07:00

my version (until someone comes up with a better solution....) is to remove all the profiles (8bim, itcp, xmp, ...) and keep the icc profile (i need this one later on) and then setting the density.

this works and keeps at least some of the meta info....(though i loose meta i need to keep)


so if someone has a good idea here.... let me know! thanks.

stroker
Posts: 16
Joined: 2008-04-07T11:24:55-07:00

Re: density change not showing in photoshop (8bim profile)

Post by stroker » 2009-07-22T03:11:50-07:00

You can try exiftool, http://www.sno.phy.queensu.ca/~phil/exiftool/

Exiftool can read and write photoshop meta info http://www.sno.phy.queensu.ca/~phil/exi ... oshop.html

I haven't tried it, but I think this should work

Code: Select all

exiftool -g -Photoshop:XResolution=300 -Photoshop:YResolution=300 file.tif 

User avatar
anthony
Posts: 8851
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: density change not showing in photoshop (8bim profile)

Post by anthony » 2009-07-22T16:45:38-07:00

stoker thanks, I have added your suggestion to IM Examples, Basics, Density or Resolution
Photoshop and Density
If you like to add something further, or have other suggestions, please let me know, either here, PM, or Email.

Anthony Thyssen <anthony AT griffith.edu.au>
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
http://www.imagemagick.org/Usage/

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests