Dependent Origination

GD library lose EXIF data during resizing

Posted on: April 27, 2011


1。 GD (不管是GD1还是GD2) library 在resize an image的时候不retain the EXIF data from the original image.

2。如果想retain EXIF during resize, 用image magic

3。mobile safari respects EXIF while most desktop browsers (webkit ones and firefox and ie) do not respect EXIF data.

4。this means, you have to rotate your own image.

5。there are two places you can rotate: on the camera or on the server.

6。android seems to have library calls to rotate the data directly off the camera sensor while i don’t seem to find similar calls for iphone.

7。so, the conclusion: rotate your image on the server for iphone so that those images will display in the correct orientation.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

April 2011
« Mar   May »


  • is reflecting on the past three years and reading the article on divided self aptly showing up at the top of my tweeter feed. 5 months ago
  • is having a nice feeling of connecting dots all over the place. they are now illuminating the same point. 6 months ago
  • Style Transfer is fun! TensorFlow rocks! #WTM17 8 months ago
  • couldn't get over the jetlag, sleeping during the day from seven to four, for days. 10 months ago
  • is emptying trash and happily discovering the available disk space now ranks at 100G+. 11 months ago

Flickr Photos

%d bloggers like this: