On Wed, Jun 4, 2008 at 4:38 PM, Randall Meadows [EMAIL PROTECTED] wrote:
On a related note, can anyone tell me if creating a CGImageSourceRef from a
file, changing (only) its properties, and writing it back out--does that
cause another (lossy) JPEG compression? As in:
cgImage =
On Jun 3, 2008, at 3:11 PM, Heinrich Giesen wrote:
I'm about to resort to using a third-part solution
This is a good idea! My favourite program is exiftool by Phil Harvey:
http://www.sno.phy.queensu.ca/~phil/exiftool/
exiftool -Orientation=8 -n a.jpg
will do the job.
Yep, it does, and
[Sorry for the length, but I've tried to include as much detail as
necessary in order to get the best answer.)
My program captures images from a digital camera. Said camera is
*always* oriented in a portrait fashion, and the image is created by
the camera (as a JPEG) with the appropriate
On Jun 3, 2008, at 11:03 AM, Randall Meadows wrote:
Except that I'm not going to be able to use jpegexiforient, because
the image file apparently isn't in the correct form it wants. This
test fails:
/* Read File head, check for JPEG SOI + Exif APP1 */
for (i = 0; i 4; i++)
exif_data[i] =
On Jun 3, 2008, at 11:14 AM, Randall Meadows wrote:
I'm about to resort to using a third-part solution (jpegtran and
jpegexiforient) that I've found, but
Except that I'm not going to be able to use jpegexiforient, because
the image file apparently isn't in the correct form it wants. This
On 03.06.2008, at 21:00, Randall Meadows wrote:
I'm about to resort to using a third-part solution (jpegtran and
jpegexiforient) that I've found, but
Except that I'm not going to be able to use jpegexiforient, because
the image file apparently isn't in the correct form it wants. This
On Jun 3, 2008, at 12:14 PM, Randall Meadows wrote:
I'm about to resort to using a third-part solution (jpegtran and
jpegexiforient) that I've found, but Shirley, I must be missing
something in the Cocoa/Carbon/Foundation/whatever frameworks that
would make my life a lot simpler. Am I
Can we see the code you're using to write the CGImage to the CGImageDestination?
I suspect the difficulty may be that you expect the metadata to be
carried with the CGImage. It isn't: You can get all the metadata
with CGImageSourceCopyPropertiesAtIndex, then you need to turn around
and pass