Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2014, 04:53 PM
larrydude larrydude is offline
 
Join Date: Nov 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 09-29-2014, 08:19 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have a plugin that has anything to do with images
Reply With Quote
  #3  
Old 09-29-2014, 08:39 PM
larrydude larrydude is offline
 
Join Date: Nov 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

thanks.
Reply With Quote
  #4  
Old 09-29-2014, 08:43 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean by rotating?
Reply With Quote
  #5  
Old 09-29-2014, 09:02 PM
larrydude larrydude is offline
 
Join Date: Nov 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....
Attached Images
File Type: jpg photo (10).JPG (30.0 KB, 0 views)
File Type: jpg after.jpg (8.1 KB, 0 views)
Reply With Quote
  #6  
Old 09-29-2014, 09:03 PM
larrydude larrydude is offline
 
Join Date: Nov 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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.
Reply With Quote
  #7  
Old 02-22-2015, 02:05 AM
Bill Stuntz Bill Stuntz is offline
 
Join Date: Feb 2015
Location: Columbus, OH
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 02-22-2015, 09:49 PM
larrydude larrydude is offline
 
Join Date: Nov 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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
Reply With Quote
  #9  
Old 02-22-2015, 09:58 PM
Bill Stuntz Bill Stuntz is offline
 
Join Date: Feb 2015
Location: Columbus, OH
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 02-22-2015, 10:24 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:57 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.04430 seconds
  • Memory Usage 2,280KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete