Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto_rotate not working #906

Closed
sergiownd opened this issue Apr 7, 2017 · 9 comments
Closed

Auto_rotate not working #906

sergiownd opened this issue Apr 7, 2017 · 9 comments
Labels
Type: Support This item pertains to support for this project.

Comments

@sergiownd
Copy link

Hei guys I'm having problems with IOS images, so I've tried to use the bundle but I cant make it run. Here is my config.yml:

liip_imagine:
    cache: resize_images
    resolvers:
        default:
            web_path: ~

        resize_images:
          web_path:
            web_root: "%kernel.root_dir%/../web"

    filter_sets:
        cache: ~

        media_converted:
            quality: 70
            filters:
                auto_rotate: ~
                scale:
                    to: 0.7

If i remove the auto_rotate it works, but I need it, any idea?
Thanks

@robfrawley
Copy link
Collaborator

robfrawley commented Apr 7, 2017

We need a bit more detail than "I can't make it run" such as the exception or error message you are receiving, or the behavior you are expecting and not getting, or really any additional information about your setup, such as the version of Symfony and this bundle you are using. If your project is open source, you can also point to that.

@robfrawley robfrawley added Type: Support This item pertains to support for this project. required information missing labels Apr 7, 2017
@robfrawley
Copy link
Collaborator

robfrawley commented Apr 7, 2017

Also, have you looked at the existing issues involving rotation to see if someone else already experienced and resolved your issue?

@sergiownd
Copy link
Author

My problem is that if I dont use the auto_rotate, my image is generated. But when I use it, the img is not generated. Im using symfoy 2.8 and the las LiipImagine version.

Logs shows no error, but the image is not generated.

Im using the function in the twig like this:

@robfrawley
Copy link
Collaborator

robfrawley commented Apr 13, 2017

A few questions:

  • Are you using the latest version of the Imagine Library?
  • What image transformation extension are you using?
  • Having you tried a different one, such as gd, imagick, or gmagick?
  • Do you have the exif extension installed?

@sergiownd
Copy link
Author

hei @robfrawley So i have to basicly install one of the php libraries (gd, imagic or gmagick and also exif?
I have not installed any of this ones. Could u please make a list of which php libraries do i need to instal?
Thanks.

@robfrawley
Copy link
Collaborator

robfrawley commented Apr 18, 2017

See the composer suggestions for packages you'd need for different environments: you don't need all of them, only the ones required for your usage. You likely already have gd installed. You can try using either imagick or gmagick if gd isn't working as you'd expect (I'd suggest imagick).

As far an the exif extension, it is used to read the EXIF information from supported image formats; without it you get a null-metadata reader, which would cause auto_rotate to not work properly. For auto_rotate to function properly, you need the exif extension so it can read the orientation key from the EXIF metadata of the image.

As you'll see via the composer suggestions, there are other libraries and extensions that provide additional functionality for specific use-cases, which are described there in the composer.json file.

@robfrawley
Copy link
Collaborator

@sergiownd Has your issue been resolved? Please close if so; otherwise let us know so we can continue to provide assistance.

@robfrawley
Copy link
Collaborator

Closing due to lack of activity; feel free to re-open if you have additional information or otherwise want to further pursue this issue.

@deivid11
Copy link

PHP must have enabled exif to get image metadata (--enable-exif)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Support This item pertains to support for this project.
Projects
None yet
Development

No branches or pull requests

3 participants