Views
431
Replies
5
Status
Closed
I am trying to read EXIF info from jpg’s written by PS CS (and 7.1) on a UNIX box using various EXIF-parsers. There are three that I’ve found, each one written by different people, and all follow the standardized EXIF spec. One package is:
<http://search.cpan.org/~ccpro/Image-EXIF-0.98.6/EXIF.pm>, and another is
< http://search.cpan.org/~gaas/Image-Info-1.16/lib/Image/Info. pm>.
Both of these packages are pretty good and stable when reading EXIF info from jpgs, so far as I can tell. However, they crash when trying to read EXIF headers from jpgs written from PS-generated jpegs. Of course, it’s their fault for crashing, no question about it. If they can’t handle the proper memory management and pointer-dereferencing, it’s their fault.
However, it also points to a problem that the reason they’re getting the bad data in the first place is that they’re expecting certain data to be there that isn’t, or in the wrong format, or breaking certain boundaries or specs. Again, they should catch these, but the fact that it’s happening is suggestive of the fact that the data in the EXIF header is somehow in a bad format, or is subtly violating some part of the spec. I can only attribute the problem to PS at this point.
The hard part about this is that the programs die so intermittently (as is always the case when there are memory violations), so it’s really hard to pinpoint exactly where the actual problem lies within the EXIF-parsing procedures. Now, if I were the developer of these packages, I could use proper software development tools to figure it out, but I’m not at that level and can’t really afford to get down into it only to determine where, in fact, PS is breaking the rules when it’s writing these headers.
So, I just thought I’d nip this in the bud and ask what the state of affairs is with the PS team’s awareness of such potential problems, and if there are any documented "known" outstanding bugs that we can know about so as to stop "futzing" with things and pay attention to other problems till a patch comes around.
Dan Heller
www.danheller.com
<http://search.cpan.org/~ccpro/Image-EXIF-0.98.6/EXIF.pm>, and another is
< http://search.cpan.org/~gaas/Image-Info-1.16/lib/Image/Info. pm>.
Both of these packages are pretty good and stable when reading EXIF info from jpgs, so far as I can tell. However, they crash when trying to read EXIF headers from jpgs written from PS-generated jpegs. Of course, it’s their fault for crashing, no question about it. If they can’t handle the proper memory management and pointer-dereferencing, it’s their fault.
However, it also points to a problem that the reason they’re getting the bad data in the first place is that they’re expecting certain data to be there that isn’t, or in the wrong format, or breaking certain boundaries or specs. Again, they should catch these, but the fact that it’s happening is suggestive of the fact that the data in the EXIF header is somehow in a bad format, or is subtly violating some part of the spec. I can only attribute the problem to PS at this point.
The hard part about this is that the programs die so intermittently (as is always the case when there are memory violations), so it’s really hard to pinpoint exactly where the actual problem lies within the EXIF-parsing procedures. Now, if I were the developer of these packages, I could use proper software development tools to figure it out, but I’m not at that level and can’t really afford to get down into it only to determine where, in fact, PS is breaking the rules when it’s writing these headers.
So, I just thought I’d nip this in the bud and ask what the state of affairs is with the PS team’s awareness of such potential problems, and if there are any documented "known" outstanding bugs that we can know about so as to stop "futzing" with things and pay attention to other problems till a patch comes around.
Dan Heller
www.danheller.com
MacBook Pro 16” Mockups 🔥
– in 4 materials (clay versions included)
– 12 scenes
– 48 MacBook Pro 16″ mockups
– 6000 x 4500 px