Hi Andrew,
I wonder if this a problem with Photoshop not reading the exif metadata
tags (or rather, the tags where the resolution is stored). You might take a
look at the exif output (exiftool[1] is nice, I'm sure there's a Python
wrapper for it) and compare the values of the tags. If necessary, you could
update the tags Photoshop wants to read with the correct values.
HTH.
Best,
Bridger
[1] https://www.sno.phy.queensu.ca/~phil/exiftool/
On Fri, Nov 1, 2019, 7:41 PM Perrine, Andrew <[log in to unmask]>
wrote:
> Hi:
>
> I’m working on a code project to lessen our manual overhead in converting
> image files (and also unchain us from having to use Photoshop’s batch
> processing capabilities for things we can do in the background instead).
> One of our vendors has us create JP2s for them and put them in a different
> directory structure. While I’m able to make all the files for this and move
> them to where they are in the directory structure, I can’t seem to figure
> out how to get the JP2s to save with the Resolution data of the original
> TIFFs intact. This causes weirdness when we open them up in photoshop,
> since the default behavior there is to interpret this as having a
> resolution of 72 PPI (they’re at 300).
>
> The command I’m using so far is the simple `rezimg.save(jp2name,
> quality_mode="dB", quality_layers=db)`, with dB having to change to meet
> their arbitrary file size standards for derivatives.
>
> Can anyone give any advice here?
>
> Best,
>
> --Andy P.
>
|