vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Rotate Photos (https://vborg.vbsupport.ru/showthread.php?t=303428)

Big Al 12-07-2013 11:37 PM

Quote:

just to be clear -- anything would help so if it's just during the upload process it'd still be huge.
The OP said anything would help. While not a perfect answer, it should allow the images to be rotated and this is what the OP asked for.

Until a better solution is forthcoming this should allow the OP to do what was requested.

dj83 05-16-2015 10:19 PM

Hello,

I know this thread is old and I didn't want to bring back to the top but I couldn't find anything else. This is for vb4 but will it work with vb3?

kh99 05-17-2015 10:19 AM

I forgot about this thread, but a while back I did this mod: https://vborg.vbsupport.ru/showthread.php?t=318291 which does what I mentioned above (rotates the image when uploading), but it only works if you have ImageMagick available (I think some shared hosts might have it available, even if you're currently using GD for other image processing). I believe it will work as is for vb3, even though I didn't release it under vb3.

Oh, the above (the one you asked about) won't work for vb3 beause it depends on the ckeditor in vb4.

PinkMilk 05-18-2015 02:18 PM

Jquery click image to rotate:

Code:

var angle = 90;
$('#rightwayup').on("click", function() {
    $(this).css({
        '-webkit-transform': 'rotate(' + angle + 'deg)',
            '-moz-transform': 'rotate(' + angle + 'deg)',
            '-o-transform': 'rotate(' + angle + 'deg)',
            '-ms-transform': 'rotate(' + angle + 'deg)'
    });
    angle += 90;
});

Code:

<img id="rightwayup" src="http://i.imgur.com/3nTTzTd.png" alt="" />
Code:

#rightwayup {
position:fixed;
-webkit-transition: all .5s ease-out;
  -moz-transition: all .5s ease-out;
    -ms-transition: all .5s ease-out;
    -o-transition: all .5s ease-out;
        transition: all .5s ease-out;
}

Not tested in vbulletin and probably conflicts with something like prev/next but hey its just my 2 cents,
jsfiddle demo


All times are GMT. The time now is 08:54 PM.

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.00991 seconds
  • Memory Usage 1,726KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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