vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Auto-Orient Uploaded Images (https://vborg.vbsupport.ru/showthread.php?t=318291)

kh99 04-16-2015 09:00 PM

Auto-Orient Uploaded Images
 
1 Attachment(s)
What is it?
----------------------------
This mod will attempt to rotate jpeg images being uploaded that contain an orientation tag, so that the uploaded image is right side up without an orientation tag. Some cameras and phones generate images that are sideways or upside down, and contain a tag with the correct orientation. Unfortunately, some browsers don't look for the tag when displaying the image. Also, if vbulletin has to resize the image or create a thumbnail image, the resulting image will not contain the orientation tag. This mod tries to rotate the image so that it will appear upright in all browsers and image sizes.

Note that this happens at the time that an image is uploaded, so this mod will not affect any existing images.

THIS MOD REQUIRES ImageMagick. You do not have to be using ImageMagick for other image processing, but the binaries must be installed on your server. Sorry, this won't work with GD and I won't be making a version that does, because I tried it before and it's too slow to be useful.

Installation:
----------------------------
1) Import the product XML file from the Product Manager.

2) Go to Settings > Options > Auto-Orient Images to enable the mod.

3) If you don't have an ImageMagick binary path entered under Image Settings, then you must enter one in the options. If you don't know what to enter, your host may be able to help. If you don't have ImageMagick available, this mod will not work.


History:
----------------------------
0.9 (Apr 17, 2015)
  • Initial Release

Thangvip9x 04-19-2015 01:29 AM

Please screenshots

kh99 04-19-2015 06:59 AM

Quote:

Originally Posted by Thangvip9x (Post 2543482)
Please screenshots

OK, I added a screen shot of the options. That's all there is to see.

VBFguy 10-24-2015 01:26 PM

As this is specified for VB4, just wanted to mention I installed it on 3.8.4 w/o modification and it works just fine on it as well.

And best of all, seems to have solved the sideways image attachment problem. Thanks for making this!

pmcpa 01-11-2016 06:27 PM

Installed, turned on, it works! Even with a 3rd party drag and drop uploader. Good work!

ArcadeSyndicate 01-11-2016 07:56 PM

Quote:

Even with a 3rd party drag and drop uploader.
[ot]vbsocial?[/ot]

sticky 01-15-2016 06:56 AM

What is imagemagic?

sticky 01-15-2016 07:01 AM

Quote:

Originally Posted by pmcpa (Post 2562477)
Installed, turned on, it works! Even with a 3rd party drag and drop uploader. Good work!

Which one are you using?

Avensen 02-07-2016 04:03 PM

Installed it on 3.8.9, works just fine! Thanks!

BadgerDog 02-19-2016 10:52 AM

Installed on 4.1.3PL8 with thanks ..

Waiting for an image to be uploaded that will test it...

Regards,
Doug


All times are GMT. The time now is 12:00 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.01379 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)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