Rotate image

chag
2001-02-01
2013-06-03
  • chag

    chag - 2001-02-01

    Hi, If Someone is interrested, I made some changes to PHPGraphy so now, it's possible to rotate pics (+90 or -90). Each time you try to rotate a pic, Convert is called and then, the rotated pic is destroyed. So, it doesn't take useless place. But, under heavy usage, the  system may become slower. Don't hesitate to mail me if u want me to send u my modifications.
    Chag@mail.dotcom.fr

     
    • Nobody/Anonymous

      I just posted a new feature request for auto-rotating (thumbs & originals) based on exif orientation. That feature would make me switch to this package.

      Mark

       
    • Nobody/Anonymous

      I just read about the optional exiftran module available...doh!

      This is great...now i just need to determine how to get it integrated post installation. Reading docs now...

      Mark

       
    • JiM / aEGIS

      JiM / aEGIS - 2006-01-12

      Hi Mark,

      It shouldn't be too difficult to implement as the rotate code is already there, my only concern if I put this feature in the core package would be when doing this auto-rotation ? So far the only time I would see that happen would be before thumbnail/lowres is generated. Send me an email, if you're happy to test, I'm happy to implement this feature :)

      Regards, JiM.

       
    • JiM / aEGIS

      JiM / aEGIS - 2006-01-13

      Extract from jhead manual:

      " -autorot
      Using  the  'Orientation'  tag  of  the Exif header, rotate the image so that it is upright.  The program jpegtran is used to perform the  rotation.  This  program  is present  in  most  Linux distributions.  For windows, you need to get a copy of it."

      So basically, adding jhead won't change anything as it's calling jpegtran behind :))

      What you would like is the support of auto-rotation using the exif orientation tag and this is something different.

      Again I need people to tests, so if you want this feature, send me an email so that when the code is ready, you can help to test it.

      Regards, JiM.

       
    • Nobody/Anonymous

      i had a problem with the rotation of images, solved it by changeing the > to a < in functions_graphical.inc.php line 460.

      if (filesize($picname_tmp) > 10) {
              trigger_error("DEBUG: Result of picture rotation for \&quot;$picname\&quot; is too small, deleting result", DEBUG);
              unlink($picname_tmp);
              trigger_error("Failed to rotate picture ".$picname, ERROR);
              return false;

       
    • JiM / aEGIS

      JiM / aEGIS - 2006-10-05

      Know bug fixed in the dev version, see https://trac.phpgraphy.org/trac/ticket/129

      Regards, JiM.

       

Log in to post a comment.