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

image not rotating when i use :angle => :exif #48

Closed
chopperop opened this issue Jan 10, 2013 · 10 comments
Closed

image not rotating when i use :angle => :exif #48

chopperop opened this issue Jan 10, 2013 · 10 comments

Kommentare

@chopperop
Copy link

images that are taken sideways from a cameraphone are not being rotated automatically when i use :angle => :exif.

i use rails and this is the code i have put into my view.

<%= cl_image_tag(content.image_url.to_s, :html_width => 500, :html_height => 150, :crop => :fill, :angle => :exif) if content.image? %>

@nadavs
Copy link
Contributor

nadavs commented Jan 10, 2013

Thank you for reporting this issue.
Are you applying any incoming transforming while uploading the images to Cloudinary? The 'exif' data might have been removed while applying the transformation. In this case adding :flags => :keep_iptc to the parameters of the upload call might solve this issue.

@chopperop
Copy link
Author

i'm actually having trouble applying any other transformations other than setting the width and height. i can't rotate them 90, apply effect or rounded corners.

edit, even applying changes to the height doesn't work. only the width works.

@nadavs
Copy link
Contributor

nadavs commented Jan 14, 2013

Can you please share the relevant upload and transformation code? It will help us better understand the problem and assist with this issue.

@jimmytidey
Copy link

Having the exact same problem. Tag like:
<%= cl_image_tag(@location.image, :rotate => 90) %>

Generates url:
http://a1.res.cloudinary.com/jimmy-tidey/image/upload/v1361905097/g1mngusur8bcckpdhdsm.jpg

Ie. URL is not cusomised

@jimmytidey
Copy link

Width and height work because there are specified as attribute of HTML image tag...

@TalLevAmi
Copy link
Contributor

Please use the following syntax for rotating an image by 90 degrees is
<%= cl_image_tag(@location.image, :angle => 90) %>

@jimmytidey
Copy link

Apologies - so much hacking about was making to lots of mistakes. If I use:
<%= cl_image_tag(@location.image, :angle => 90) %>

I get URL
http://a1.res.cloudinary.com/jimmy-tidey/image/upload/v1361905097/g1mngusur8bcckpdhdsm.jpg

This applies for all effects that I have tried.

@TalLevAmi
Copy link
Contributor

You can use the following syntax:
<%= cl_image_tag(@location.image.full_public_id, :angle => 90) %>
We'll look into making this work directly with the image.

@TalLevAmi
Copy link
Contributor

Actually, you need to be a little more careful. If you want to support format, use:
<%= cl_image_tag(@location.image.full_public_id, :angle => 90, :format=>"png") %>
otherwise use:
<%= cl_image_tag(@location.image.filename, :angle => 90) %>

@jimmytidey
Copy link

Thanks for your help on this... sorry for late reply.

nadavs added a commit that referenced this issue Mar 10, 2013
…g in remote_image_url, Issue #48 - Allow carrier wave upload to be given to url/image methods, Support for explode and multi API. Support async and notification, Correctly delete raw resources uploaded via CarrierWave.
@nadavs nadavs closed this as completed Mar 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants