vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Proportionally Auto Resize User Avatar (https://vborg.vbsupport.ru/showthread.php?t=113306)

toolblast 04-28-2006 05:31 PM

Quote:

Originally Posted by fneumeier
Chad,

I've read such suggestions now many time here in various forums. But this definitely it not a solution but only is a desaster for performance on my server. Imaging users upload a 3-Mpixel image and VB is resizing this EVERY TIME this image is being viewed! Also, think about storage space these pictures would need on the server/in the database!

No, I really want to resize the images right when they're uploaded. In consider this as extremely userfriendly (no need fo the user to resize the images prior to upload) and as a optimal solutions for server performance and storage space. The high resolution/big sized images are not needed for anything, so why keep them on the server?

Have you got an idea where to resize the pictures right at the upload?

Thanks
Franz


Clearly you would need to restrict file size for image uploads so users cant upload unlimited 3MP images. Thats pretty obvious.

This script does dynamic resizing like the title of this thread states. It isn't a script that resizes and then resaves the image, overwriting the original. Though, im sure you could find a php script that does that by searching Google.

Thanks.

fneumeier 04-28-2006 07:21 PM

My posting probably was not clear enough: I know HOW to resize a image with PHP and GDlib. I just don't find the place in the VB code WHERE to pick up the image date after upload and manipulate it. Any hints where in the code I have to look for that? I suppose it's in the class_upload, but I can't find the exact position ...

Thanks
Franz

toolblast 04-29-2006 02:49 AM

I really dont know where it is, I'd have to go hunting.

Does any expert vb coder know where this bit of code is?

cannabis-world 04-29-2006 12:07 PM

I know that vb strips the exif data when it makes thumbnails, so is it possible to resize the attachments as they are being uploaded to say 99% of their original size, thereby stripping the exif data. Perhaps someone reading this can help. Thanks for your help toolblast but unfortunately resizing on the fly will slow down our server considerably.

SQL man 05-01-2006 12:35 AM

hi , I tried to test it
it didn't work with my member's avatar in the threads pages !! it still big images!!
whats the problem ?

cucarot 05-06-2006 10:42 PM

how to use it in postbit ^ ^ I mean how to resize avatar of a user in postbit if he/she uploads an avatar that exceeds the limit of forum? :) thx

toolblast 05-12-2006 12:39 PM

Quote:

Originally Posted by SQL man
hi , I tried to test it
it didn't work with my member's avatar in the threads pages !! it still big images!!
whats the problem ?

Can you give me a demo/test URL to see this SQL man? Or if you feel comfortable enough grant me admincp access and I'll see whats wrong. Previous users have PMd me to get me to install this for them and I have been able to get it working for them.

toolblast 05-12-2006 01:13 PM

Quote:

Originally Posted by cucarot
how to use it in postbit ^ ^ I mean how to resize avatar of a user in postbit if he/she uploads an avatar that exceeds the limit of forum? :) thx

Hi Cucarot!

Right now I had to fix a few bugs and this plugin now only works in the forum header and navbar (and a few other templates). Unfortunately it doesnt work in the postbit template (it just shows a blank space instead of the avatar).

I am working on a new version of this plugin that will allow admins to easily add restraints to ANY image attachments/uploads which has been a huge request here on vb.org and I'll keep everyone updated, so stay tooned!

Thanks

The Chief 05-16-2006 07:49 PM

Can you get this to work without Apache? (without GD Library installed)

The Chief 05-17-2006 03:09 AM

Can anybody get this to work with ImageMagick??

toolblast 05-17-2006 03:11 PM

Hi Chief! Nice to see you here.

I believe it is only coded to work with GD right now but I'll look for php code that may work with imagemagick

-------------

Just a note to everyone who hasn't realized that I updated the plugin description: this hack doesn't work EVERYWHERE like previously stated. Some templates in vbulletin do not render global variables making the plugin not show the avatar. One of these templates is the postbit template. If you put '$useravatar' in that template nothing will happen. Why? I'm not sure, and if anyone knows how to make it work please share!

Thanks.

toolblast 05-17-2006 03:13 PM

Hey Chief,

I think I found something that may help. I haven't examined the code yet, but this page looks promising:

http://www.imagemagick.org/script/convert.php

The Chief 05-17-2006 06:19 PM

Quote:

Originally Posted by toolblast
Hey Chief,

I think I found something that may help. I haven't examined the code yet, but this page looks promising:

http://www.imagemagick.org/script/convert.php

Yup, it does, this is what I would need, if you can get this to work with a different plug-in or the same one you would make one more happy man ;)

Tell me if you need help testing it.

toolblast 05-18-2006 12:43 PM

Hmm. Well it looks like it would require a lot of research and coding to get imagemagick working lol. There really isn't very much documentation on the resizing function in IM with PHP.

Maybe in the future I'll try and add that in. In the meantime, you need to get GD Library on your server! lol

The Chief 05-18-2006 03:40 PM

Quote:

Originally Posted by toolblast
Hmm. Well it looks like it would require a lot of research and coding to get imagemagick working lol. There really isn't very much documentation on the resizing function in IM with PHP.

Maybe in the future I'll try and add that in. In the meantime, you need to get GD Library on your server! lol

That's something I can't do. Apache is uninstalled on my server, I am running my website on lighttpd which means no Apache, and why couldn't it be possible? vB 2.~something uses ImageMagick and there is some hacks for automatically resizing user avatars, but I only need it for this ;)

futuredood 08-02-2006 04:00 AM

hey toolblast,

have you made any progress in how to get the postbit_legacy to resize the image? this is similar to what i've been trying to do. i'm trying to have the profile pic in the memberinfo template, and in postbit_legacy to automatically resize that into an avatar. this would make the profilepic and avatar the same image. i have a whole thread going on on it here:

https://vborg.vbsupport.ru/showthread.php?t=122710

bashy 03-18-2007 08:31 AM

i tried this on 3.6 but no go for launch :(
Any chance on an upgrade please? :)

v12kid 04-18-2007 11:33 PM

same question, can you port this for 3.6 Ill even pay you for it! lol

Tralala 04-22-2007 10:16 PM

No go on 3.6.5 here either... would love to see an update!

rsuplido 12-13-2007 08:57 AM

Attached is a new imageresize.php script that should work with 3.6.5. Overwrite the original one. This script came from http://tech.mikelopez.info/2006/03/0...resize-script/ modified to work with this mod.

HunteRRosE 01-27-2008 05:28 AM

anyone get this to work on 3.6.8?

nando99 05-20-2008 06:56 PM

I know this is old - but I'd love to see this for 3.6.8

Mischievious 06-14-2008 10:36 PM

I'd like to see this ported over to 3.7.1. Too bad the original coder does not seem to support his work any longer.

Javierogo 10-28-2009 05:11 AM

This %$/&#$ does not work :down:

danyxxx 09-13-2011 07:17 AM

For 3.8.6 ?
Can this be made?


All times are GMT. The time now is 09:57 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.01509 seconds
  • Memory Usage 1,767KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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