Which new features do you want to see in the gallery?

Rotate images

EN: It would be great to have the option to rotate the images after upload. Either in back-end only, or in both in front-end and back-end.

DE: Bilder sollten in der Galerie gedreht werden können (auf jeden Fall im Backend, optional auch im Frontend).

466 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    pbekesipbekesi shared this idea  ·   ·  Admin →

    35 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Matthias AchermannMatthias Achermann commented  · 

        Over 6 years now and no progress? Very sad as this is the only feature I and my website users really miss!

      • Anonymous commented  · 

        Why does JoomGallery ignore exif information? Website users don't understand, why their photos have a wrong orientation. They blame the website, because they see the pictures correctly on their smartphone or computer. PLEASE add this feature. I'm tired of explaining them, that they have to roatate their pics. Then they answer me: "No, it's correct on my computer. The website is turning them upside down!" Arrrrggghhh!!!

      • Anonymous commented  · 

        Pictures should be rotated according to exif information. PLEASE integrate this feature. My user keep asking me, why their pictures are shown on the side!

      • Anonymous commented  · 

        an absolute must! Pls add this feature

      • Eric SchneiderEric Schneider commented  · 

        This would be SO nice! I just migrated 7216 images from Gallery2 (no longer supported) and it had this feature.

      • Jean-PhilippeJean-Philippe commented  · 

        +++ Having to work on my photo to rotate them is unfriendly...
        Use EXIF rotation AND allow manual rotation through the module...
        Thank you!!!

      • tintintintin commented  · 

        optional auto-rotate (based on config-setting) is a must for any gallery - pls add to front and backend
        thanks

      • studerstuder commented  · 

        Rotate images, please.

      • Anonymous commented  · 

        I vote for this option! Very needed! :)

      • RSRS commented  · 

        Hi,
        mmmh, empty exif field. Didn't think of that since it happend to me while importing a bunch of images from the same DSLR.
        I actually kicked the exif line out because I found that joomgallery is reading it already in Line 314 for the calculation of the image sizes.
        And I moved the rotation lines into the "switch cases". Otherwise the rotation is unnecessarily called if no rotation is required. And I also don't need the $degrees variable anymore and it's only trying to rotate if it has found something in the exif header.

        //rotate test

        //$exif = exif_read_data($src_file);


        switch($exif['Orientation'])
        {
        case 1: // no need to perform any changes
        break;
        case 3: // 180 rotate left
        $rotate = imagerotate($dst_img, 180, 0);
        $dst_img=$rotate;
        break;
        case 6: // 90 rotate right
        $rotate = imagerotate($dst_img, 270, 0);
        $dst_img=$rotate;
        break;
        case 8: // 90 rotate left
        $rotate = imagerotate($dst_img, 90, 0);
        $dst_img=$rotate;
        break;
        default: break;
        }

        if(!@imagejpeg($dst_img, $dest_file, $dest_qual))
        {
        // Workaround for servers with wwwrun problem

      • SerёgaSerёga commented  · 

        Add the following into the file "joomla\administrator\components\com_joomgallery\helpers\file.php" at around line 600 just before the workaround comment - that's the GD2 section!!!

        //rotate test

        $exif = exif_read_data($src_file);

        if (empty($exif['Orientation'])) $degress=0;

        switch($exif['Orientation'])
        {
        case 1: // no need to perform any changes
        break;
        case 3: // 180 rotate left
        $degrees = 180;
        break;
        case 6: // 90 rotate right
        $degrees = '270';
        break;
        case 8: // 90 rotate left
        $degrees = '90';
        break;
        default: break;
        }

        $rotate = imagerotate($dst_img, $degrees, 0);
        $dst_img=$rotate;

        if(!@imagejpeg($dst_img, $dest_file, $dest_qual))
        {
        // Workaround for servers with wwwrun problem

        those last 3 lines are original lines from the file, just to find the correct place.

        "Upload failed" fixed

      • RSRS commented  · 

        I found a quick but a bit dirty solution.Works for my purpose.
        Add the following into the file "joomla\administrator\components\com_joomgallery\helpers\file.php" at around line 600 just before the workaround comment - that's the GD2 section!!!

        //rotate test

        $exif = exif_read_data($src_file);

        if (empty($exif['Orientation'])) $degress=0;

        switch($exif['Orientation'])
        {
        case 1: // no need to perform any changes
        break;
        case 3: // 180 rotate left
        $degrees = 180;
        break;
        case 6: // 90 rotate right
        $degrees = '270';
        break;
        case 8: // 90 rotate left
        $degrees = '90';
        break;
        default: break;
        }

        $rotate = imagerotate($dst_img, $degrees, 0);
        $dst_img=$rotate;

        if(!@imagejpeg($dst_img, $dest_file, $dest_qual))
        {
        // Workaround for servers with wwwrun problem

        those last 3 lines are original lines from the file, just to find the correct place.

        Batch import sometimes complains that it failed but it worked so far for me. I don't know if it really works if you "batch recreate" everything in the image manager. But since I create a brand new gallery I don't bother right now.

      • RSRS commented  · 

        Without that feature I have to create a copy of whatever image folder I want to upload to my webspace and rotate them locally first.
        And because I'd like to have a backup copy of my webspace folder locally but also keep the original images as they came out of my camera I end up with twice as much data (dozens of gigabytes) on my hard drive. Just because auto rotate is missing.

        I don't really get why that isn't done automatically anyway. Every image viewer is rotating pictures according to their EXIF rotation flag.
        I just tested it with Firefox. If I browse with Firefox to one those pictures on my hard drive it's shown correctly. In Joomgallery it's shown unrotated/sideways.

      • Daniel MaDaniel Ma commented  · 

        definitely needed. also reordering

      • GeorgyGeorgy commented  · 

        Agree, it would be great!

      • kaikai commented  · 

        ein sehr sinnvolles feature, verstehe nicht, warum das noch nicht funktioniert. schade

      ← Previous 1

      Feedback and Knowledge Base