Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Auto-Orient Uploaded Images Details »»
Auto-Orient Uploaded Images
Version: 0.9, by kh99 kh99 is offline
Developer Last Online: Sep 2020 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 04-16-2015 Last Update: Never Installs: 35
Uses Plugins
Re-useable Code Is in Beta Stage  
No support by the author.

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

Download Now

File Type: xml product-kh99_auto_orient_images_v0_9.xml (6.7 KB, 151 views)

Screenshots

File Type: png sg.PNG (27.0 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
blind-eddie, MarkFL, MikeTrin

Comments
  #12  
Old 05-01-2016, 09:58 AM
SoHelpMe SoHelpMe is offline
 
Join Date: Apr 2014
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #13  
Old 05-01-2016, 01:00 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tested with thanks ..

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

Regards,
Doug
Reply With Quote
  #14  
Old 01-09-2017, 09:04 PM
Dan49 Dan49 is offline
 
Join Date: Feb 2012
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works with 3.8.9 thank you.
Reply With Quote
  #15  
Old 03-28-2017, 11:39 PM
filmking filmking is offline
 
Join Date: Apr 2006
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 03-29-2017, 03:18 AM
mtlurb mtlurb is offline
 
Join Date: Sep 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is working!!

Thank you very much!! My users will be very happy!!!
Reply With Quote
  #17  
Old 09-16-2017, 06:36 PM
exploringnh exploringnh is offline
 
Join Date: Feb 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 03-10-2018, 02:10 PM
oldengine oldengine is offline
 
Join Date: Mar 2004
Posts: 257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THANK YOU!!!

It works on 3.8.9 level 1. Now to get busy and go to 3.8.11.
Reply With Quote
  #19  
Old 11-16-2018, 03:41 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #20  
Old 11-16-2018, 07:59 AM
Kane@airrifle's Avatar
Kane@airrifle Kane@airrifle is offline
 
Join Date: Jun 2011
Location: ZA
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try /usr/bin/
Reply With Quote
Благодарность от:
HM666
  #21  
Old 11-17-2018, 01:38 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kane@airrifle View Post
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.
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 11:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05127 seconds
  • Memory Usage 2,336KB
  • Queries Executed 29 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete