Jump to content

image rotation


phppup

Recommended Posts

I know there won't be much there, but seeing the change will confirm effectiveness.

I am starting with File A and altering it and overwriting it as File A again.  What do I need to do to capture the EXIF from the edited version?

How do I get it to grab the data aknew?

Link to comment
Share on other sites

24 minutes ago, phppup said:

I am starting with File A and altering it and overwriting it as File A again. 

Then it sounds like your rotation function is the same as you posted earlier - yes?

$filename = '/images/myphoto.jpg';

$exif = exif_read_data($filesname);
echo '<pre>BEFORE: ' . print_r($exif, 1) . '</pre>';

correctImageOrientation($filename);

$exif = exif_read_data($filesname);
echo '<pre>AFTER: ' . print_r($exif, 1) . '</pre>';

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.