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

SoHelpMe 05-01-2016 09:58 AM

Can someone post a test pic or link to a pic that can be used for testing..... I have users that posy pics and they come in sideways and it drives them crazy. I have loaded up this app and configured it, all should be fixed but I would like an image I could use as a confirmed test case. I would like to upload the image to my site with the plugin off and see it sideways and then turn the plugin on and see if upload right side up. Please try to help me out if possible. If you would like to email me an image IM me and I will send you my email address. Thanks.

BadgerDog 05-01-2016 01:00 PM

Tested with thanks .. :)

Uninstalled as I think it was causing problems with user's uploads as file attachments..

Regards,
Doug

Dan49 01-09-2017 09:04 PM

Works with 3.8.9 thank you.

filmking 03-28-2017 11:39 PM

tested with thanks...... unfortunately I too have experienced upload of file failures from several users and my own efforts. Initially it appeared to work and the two users that had pictures uploading upside down said that was cured. However in days that followed several users complained of upload file errors and I too experieinced it. Too bad I had to delete it. Using V4.2.4 Beta 2

mtlurb 03-29-2017 03:18 AM

This is working!!

Thank you very much!! My users will be very happy!!!

exploringnh 09-16-2017 06:36 PM

I am new to VBulletin even though my forum has been around for a while, I have only owned it for a few months. I am fairly confident in my abilities and have been able to install some plugins and fix some user issues. However, the newest problem is images being posted to the forum are loading in sideways. I have done everything I can think of. Today I found this thread and installed the .xml to the Forum. However, for the life of me I cannot figure out how to install imagemagick. I have been working on it for hours with no success. I am using a Macbook Pro, I have Go Daddy as my host, my Server is Cpanel and I use Cyberduck for my FTP items. I have tried to find instructions and have found some, but none of them are detailed enough for a newer person to be able to run the scripts and install the imagemagick files into vbulletin.

Does anybody have more detailed instructions or an easier way to get imagemagick working on my server so users pictures will load properly. Or does anybody know of another plugin that would work better.

Thank you.

oldengine 03-10-2018 02:10 PM

THANK YOU!!!

It works on 3.8.9 level 1. Now to get busy and go to 3.8.11.

HM666 11-16-2018 03:41 AM

This is not working on my forum. :( ImageMagick is installed and I asked the host about the path, but it still does not work.

I'm running 4.2.5.
Here is what the host sent me:
Quote:

=============================
/usr/bin/convert --version
Version: ImageMagick 6.7.2-7 2017-03-22 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
=============================

The path to ImageMagick's most popular binary 'convert' is: /usr/bin/convert
I put in /usr/bin/convert into the pathway and its not working. :( Anyone have any ideas, or did I do something wrong?

Kane@airrifle 11-16-2018 07:59 AM

Try /usr/bin/

HM666 11-17-2018 01:38 AM

Quote:

Originally Posted by Kane@airrifle (Post 2597416)
Try /usr/bin/

Thanks, that worked a bit better. Its posting just fine in the forum area but I still get upside down photos in the gallery I'm using. I'll have to see if the developer of the gallery has any info on how to fix it. Thanks again.


All times are GMT. The time now is 04:54 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.03159 seconds
  • Memory Usage 1,751KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete