Skip to Content Skip to Menu

Solved/ CB Gallery: Rotation of pictures

  • Toulouzing
  • Toulouzing
  • ONLINE
  • Posts: 115
  • Thanks: 16
  • Karma: 2
1 day 19 hours ago #343108 by Toulouzing
CB Gallery: Rotation of pictures was created by Toulouzing
This is just for my information. Many photos uploaded from smartphone are not in the proper orientation and need to be rotated by 90° or 180° but they can't anticipate from their smartphone so, it is only while displaying the photo in gallery that we see the reeel orientation. However, it is not possible to change this orientation. 

For a dvelopper, what should be the difficulty to add such feature ( a button to rotate image by 90%) ?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50085
  • Thanks: 8569
  • Karma: 1468
1 day 19 hours ago #343109 by krileon
Replied by krileon on topic CB Gallery: Rotation of pictures
EXIF orientation is already respected. In both client side and server side uploads. So if they took their photo with a mobile device and uploaded it should orientate correctly, but from a previous post I recall you turned off always resampling so some images probably aren't being resampled and thus this behavior can possibly be bypassed.

Aside from that what you're asking for already exists. Open a photo then view the dropdown menu for it where you'll see menu options to rotate a photo left or right and you can do so as many times as you need.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • Toulouzing
  • Toulouzing
  • ONLINE
  • Posts: 115
  • Thanks: 16
  • Karma: 2
13 hours 50 minutes ago #343138 by Toulouzing
Replied by Toulouzing on topic CB Gallery: Rotation of pictures
Yes, I noticed now. 

Some users do not understand why they need to rotate their image ( as result of Exif Orientation data as you said) while it is correct on thumbnails. This is typical to smartphones pictures !
Do you have in your plan to check the Exif orientation in order to avoid the concern ? 

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50085
  • Thanks: 8569
  • Karma: 1468
12 hours 14 minutes ago #343143 by krileon
Replied by krileon on topic CB Gallery: Rotation of pictures
We already support EXIF orientation. As explained in another topic you turned off resampling. If resampling is turned off then images are only processed if they need to be resized otherwise they're just direct copy. If you always resample images their EXIF data will be checked and rotated accordingly. Client side resizing will also rotate the images before passing them through to be uploaded. Thumbnails are correct because you probably didn't turn resampling off for thumbnails and only turned it off for photos.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • Toulouzing
  • Toulouzing
  • ONLINE
  • Posts: 115
  • Thanks: 16
  • Karma: 2
12 hours 1 minute ago - 11 hours 21 minutes ago #343144 by Toulouzing
Replied by Toulouzing on topic Solved/ CB Gallery: Rotation of pictures
Indeed i turned ON resampling since you adviced me to do so in, a former topic. In my understanding there is only 1 toggle for resampling images which is in generale configuration of CB (just under choice of image processor) - But as per the quote below, Is there another resampling switch for thumbnails ?

Thumbnails are correct because you probably didn't turn resampling off for thumbnails and only turned it off for photos.


EDIT: Oh sorry - forget me, i found it in the gallery validation rules.....
Last edit: 11 hours 21 minutes ago by Toulouzing.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum