vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How do I disable images from auto-rotating? This problem is on this forum too. (https://vborg.vbsupport.ru/showthread.php?t=314587)

larrydude 09-29-2014 04:53 PM

How do I disable images from auto-rotating? This problem is on this forum too.
 
Some of my forum members complain that their images look fine everywhere but once they upload to the forum then they rotate.

I tested this with one of their images and this happens. In my searches it appears that ImageMagick may be rotating these images based on exif info.

How can I disable whatever is auto-rotating my member's images?

Thanks in advance for assistance.

ForceHSS 09-29-2014 08:19 PM

Do you have a plugin that has anything to do with images

larrydude 09-29-2014 08:39 PM

No additional plugins related to images are used at all. The forum uses ImageMagick on 4.22 pl1.

thanks.

ozzy47 09-29-2014 08:43 PM

What do you mean by rotating?

larrydude 09-29-2014 09:02 PM

1 Attachment(s)
Certain images apparently has EXIF info in them that when uploaded to the forum they are auto-rotated 90 degrees counter-clockwise.

These appear to be images taken on an Iphone in landscape mode (at least what I have tested) where the image looks perfect on a computer. It can upload to social media sites without problem.

But when the member uploads, it goes from looking correctly to rotate 90 degrees counter-clockwise

I have uploaded the original image and a screenshot of what happens when the members/I upload. /// This forum does the SAME thing! The original image looks perfect on the computer before uploading.

Keep in mind that most uploads are fine. It is only certain images....

larrydude 09-29-2014 09:03 PM

I just noticed the thumbnail on THIS forum rotates it just like on my forum. Then when you click on it you can see the way it should be. Notice that this forum only rotated one of the two.

Quote:

Originally Posted by larrydude (Post 2516958)
Certain images apparently has EXIF info in them that when uploaded to the forum they are auto-rotated 90 degrees counter-clockwise.

These appear to be images taken on an Iphone in landscape mode (at least what I have tested) where the image looks perfect on a computer. It can upload to social media sites without problem.

But when the member uploads, it goes from looking correctly to rotate 90 degrees counter-clockwise

I have uploaded the original image and a screenshot of what happens when the members/I upload. /// This forum does the SAME thing! The original image looks perfect on the computer before uploading.

Keep in mind that most uploads are fine. It is only certain images....

--------------- Added [DATE]1412097558[/DATE] at [TIME]1412097558[/TIME] ---------------

--------------- Added [DATE]1412097660[/DATE] at [TIME]1412097660[/TIME] ---------------

Does everyone see the problem here? Is this a bug in Vbulletin since it is happening even here? The thumbnail is shown in one orientation, then the actual image is shown correctly if you click on the thumbnail.

Bill Stuntz 02-22-2015 02:05 AM

Actually, I think you're looking at the problem BACKWARDS. The exif data says Landscape even for Portrait photos, with an orientation tag telling the computer to rotate it to portrait when it's displayed. ImageMagick seems to ignore that orientation tag, and the OTHER programs obey it. I found this, but haven't figured out how to actually DO it in vB. If anyone can help, I'd appreciate it. I think it's just an option that needs to be specified as ImageMagick is executed to process the photo.

Quote:

Digital Photo Orientation
I have been told that Photoshop will automatically rotate digital images based on the EXIF 'Orientation' setting, IM will also do this by including a "-auto-orient" operator, after reading in the image.
--------------- Added [DATE]1424646395[/DATE] at [TIME]1424646395[/TIME] ---------------

Here's a link demonstrating OUR problem:
http://mb.nawcc.org/showthread.php?1...938#post936938

larrydude 02-22-2015 09:49 PM

This is acknowledged as a bug in the vbulletin.com bug tracking system. People have to vote it up before they will consider fixing it. I do not recall the name of the problem. This is a problem that most forum owners do not know is a problem. I believe it is a problem for all vbulletin forums (at least ver. 4x.x).

This is more of an issue on forums that have images that originated from mobile devices. To my knowledge there is no fix.

Quote:

Originally Posted by Bill Stuntz (Post 2538254)
Actually, I think you're looking at the problem BACKWARDS. The exif data says Landscape even for Portrait photos, with an orientation tag telling the computer to rotate it to portrait when it's displayed. ImageMagick seems to ignore that orientation tag, and the OTHER programs obey it. I found this, but haven't figured out how to actually DO it in vB. If anyone can help, I'd appreciate it. I think it's just an option that needs to be specified as ImageMagick is executed to process the photo.



--------------- Added [DATE]1424646395[/DATE] at [TIME]1424646395[/TIME] ---------------

Here's a link demonstrating OUR problem:
http://mb.nawcc.org/showthread.php?1...938#post936938


Bill Stuntz 02-22-2015 09:58 PM

Yeah, I know. And our site is VERY dependent on images. It's a PITA to have to manually correct iPhone & pro grade camera photos.

That "-auto-orient" trick might work, but I don't know enough to actually try it. And the upside-down photos when they rotate the camera the "wrong" way are especially annoying.

kh99 02-22-2015 10:24 PM

Hmm...I downloaded the example that was posted above, and I notice that the orientation varies a lot. I'm working on a Windows system, and I find that the image looks right in browsers and in an image processing program called Gimp (which actually offered to rotate it when I opened it), but it looks sideways in the other Windows image viewers that I tried. My understanding of the problem is that Apple decided to leave images un-rotated and put orientation info in the EXIF data, but not every program respects that.

So it seems like there would be two ways to handle it: either rotate the resized images so that they're right side up, or else transfer the EXIF data to the resized images, so at least they'll look the same as the original.

Bill, did you try adding the -auto-orient to the code like I mentioned on vbulletin.com? I think it might only work for thumbnails, but at least we'd know if it worked at all. I'll try it myself but I don't have ImageMagick set up yet, and I'm not sure I'll be able to get it to work on my test system I have installed on my Windows machine.


All times are GMT. The time now is 07:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01237 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete