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

Reply
 
Thread Tools Display Modes
  #21  
Old 02-23-2015, 03:04 PM
Bill Stuntz Bill Stuntz is offline
 
Join Date: Feb 2015
Location: Columbus, OH
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
My point was to help get kh99 on the right track, and explain the problem.
kh99, there is a check in the IM processing part of the class_image to check the filetype, maybe you can run some code there.

Mobile devices read and recognize the metadata, browsers don't care. Maybe they should, but they don't.
Thanks for your help - both Zachery and kh99!

The phrases I bolded in that quote and my comment may be the most important ones in this whole thread, emphasizing the level of attention I think this problem deserves. It's not a trivial problem for our moderators and users. I hadn't thought to phrase it Zachery's way. I'm trying to help get the problem fixed, too - for everyone. It's been ignored for way too long. Only a few cameras/photos cause the problem - mostly the ubiquitous iPhone. But everyone uses a browser to view our photo-intensive 100K+ thread educational MB. Approximately 130 registered users and 1400 guests are online as I'm typing this. Most of the threads they're browsing contain photos. And they need to stand on their heads to view a few of the photos in the correct orientation. If they're using a phone or tablet, turning IT upside down doesn't help - the orientation sensor causes the photos stay upside-down/sideways, anyway!
Reply With Quote
  #22  
Old 02-24-2015, 04:11 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, Bill, larrydude, or anyone else who wants to try it, I'm attaching a product, if you want to test it for me you can import it in the product manager, then go to the options and set Enable to Yes.

I've tested it only with the one image that larrydude posted, but the only issue I can really see is maybe large files will cause memory or time issues. In any case, if you do test it let me know how it goes, and I'll release it so other people can use it if they want.

(Removed attachment - see updated version below)
Reply With Quote
  #23  
Old 02-24-2015, 05:23 PM
Bill Stuntz Bill Stuntz is offline
 
Join Date: Feb 2015
Location: Columbus, OH
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I plan on testing, but as I said, I'm new at this stuff. So it might take me a while to figure it out. I can send you a 6MB original "sideways" photo, excerpts from the exif data below. This is typical of the photos that give us trouble, but maybe a little large. We resize them to 1600wide, and they store at <250K or so in our database. Please PM me or something if I can send it to you.

[Model ] = "Canon EOS REBEL T2i"
[Orientation] = 8 = Row 0: left, Col 0: bottom
Image Size = 5184 x 3456
Raw Image Orientation = Landscape

P.S. It's that Orientation = 8 and the fact that it SAYS landscape instead of portrait that's driving me nuts.
Reply With Quote
  #24  
Old 02-24-2015, 07:20 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I got your sample images and tried them, and they seem to work OK. I'm working on an old, slow PC and the large one took maybe 30 seconds to a minute to rotate, so I'd imagine on a modern server it wouldn't be that noticable. I'm attaching a new version here, so let me know how it goes.

(Removed attachment - see below)
Reply With Quote
  #25  
Old 02-24-2015, 07:46 PM
Bill Stuntz Bill Stuntz is offline
 
Join Date: Feb 2015
Location: Columbus, OH
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tested the in our off-line test copy of 4.2.2 using FF.
enabled: thumb sideways, expanded upright (IMG_0014)
disabled: all sideways
6MB: upload failed (undefined) enabled or disabled - may be a problem in test MB, uploads OK in live MB.

Haven't tried other browsers yet.

OOPS!!! I lied - thumb & lightbox sideways, full size upright in both cases!
Reply With Quote
  #26  
Old 02-24-2015, 07:58 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure I follow all that, but it sounds like you're saying that it's not working for you? I guess the full size will be upright because the browser knows how to display it.

You do have IM configured on your test site, right? The browser shouldn't matter if it's working, the thumb, lightbox, and full size should look the same. I guess I'll have to make up a version that has some kind of debugging output.
Reply With Quote
  #27  
Old 02-24-2015, 08:00 PM
Bill Stuntz Bill Stuntz is offline
 
Join Date: Feb 2015
Location: Columbus, OH
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe I did something wrong installing? As I said, I'm new at this, and the behavior seems unchanged. just for the heck of it I'm going to attach that image here.
Attached Images
File Type: jpg IMG_0014.jpg (110.8 KB, 0 views)
Reply With Quote
  #28  
Old 02-24-2015, 08:06 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, if you got it installed so the options are showing up, that's all that you should need to do. Well, as long as you have ImageMagick set up in the Image Options, but I'm assuming that you do.

I'll add some messages so I can figure out what's going on. There are a lot of things that can cause the mod to give up.
Reply With Quote
  #29  
Old 02-24-2015, 08:08 PM
Bill Stuntz Bill Stuntz is offline
 
Join Date: Feb 2015
Location: Columbus, OH
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm going to PM you a link to those posts in our test copy of the MB.
Reply With Quote
  #30  
Old 02-25-2015, 01:29 AM
Bill Stuntz Bill Stuntz is offline
 
Join Date: Feb 2015
Location: Columbus, OH
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm starting to wonder whether we might be barking up the wrong tree, based on these - especially the "scaled to" in the one named "14-full size upright"
How/why did the system decide to scale 640x480 image to 480x640?
Attached Images
File Type: png 14-thumbnail.png (6.5 KB, 0 views)
File Type: png 14-lightbox-sideways.png (5.6 KB, 0 views)
File Type: png 14-full size upright.png (4.8 KB, 0 views)
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 03:40 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.07043 seconds
  • Memory Usage 2,278KB
  • 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
  • (1)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
  • (4)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
  • (4)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