• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Manipulating images with meta-data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Manipulating images with meta-data


  • Subject: Re: Manipulating images with meta-data
  • From: Randall Meadows <email@hidden>
  • Date: Tue, 3 Jun 2008 12:03:52 -0600

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 test fails:


/* Read File head, check for JPEG SOI + Exif APP1 */
for (i = 0; i < 4; i++)
 exif_data[i] = (unsigned char) read_1_byte();
if (exif_data[0] != 0xFF ||
   exif_data[1] != 0xD8 ||
   exif_data[2] != 0xFF ||
   exif_data[3] != 0xE1)
 return 0;

since the 4th byte (exif_data[3]) is 0xE0. I don't really know what that means, other than I guess I'm back to square one trying to rotate an image, and update and preserve all the meta-data.

Guess I'm off to read the spec, unless anyone's got any great ideas for me. Please? Pretty please?


randy _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Manipulating images with meta-data
      • From: Bill Bumgarner <email@hidden>
References: 
 >Manipulating images with meta-data (From: Randall Meadows <email@hidden>)

  • Prev by Date: Re: Main window disappears. Sometimes.
  • Next by Date: Re: Manipulating images with meta-data
  • Previous by thread: Manipulating images with meta-data
  • Next by thread: Re: Manipulating images with meta-data
  • Index(es):
    • Date
    • Thread