View Full Version : Upload image of any filesize and dimension then resize large image
mvigod
07-31-2005, 12:46 AM
This was a hack we did on our asp based forum but I have not had time yet to figure out how to do it on VB. Imagine a board without file size limits for users to upload their images to. Rather than require the user to resize an image to constrain the pixel dimension or filesize you can have GD/PHP do it for them. Users are typically displeased to have to resize images on their own and if VB did it for them it would be welcomed by many.
I took a quick peek at the classes and figure you have to examine the pixel dimension on the large image being uploaded then if it exceeds either your max height or max width you resize it down to proper dimensions (same as thumbnail routine).
MrNase
10-01-2005, 11:40 AM
I want to have this too :)
MrNase
10-01-2005, 01:36 PM
I have your hack installed and tried to port it to vB3.5 but as you said too many things have changed :(
mvigod
10-01-2005, 10:31 PM
Kirby said he would try and port this to 3.5 now that it is gold. you might want to PM him and see if he has it on his things to do list still.
marc
MrNase
10-12-2005, 09:35 PM
I pmed Kirby but I never got a reply :(
Chris M
10-12-2005, 09:57 PM
An important thing to remember is that your images will be limited by the upload limit of PHP itself, so it's not "limitless" ;)
Chris
MrNase
10-13-2005, 08:54 AM
Well yeah but my upload limit is set to 250 MB and I highly doubt someone will upload images from that size :D
MacMorag
10-13-2005, 10:48 AM
I would love this too.
With the option of creating a thumbnail of the uploaded image - in addition to the initial resize.
Chris M
10-13-2005, 11:02 AM
Well yeah but my upload limit is set to 250 MB and I highly doubt someone will upload images from that size :D
I will just to be annoying ;)
Chris
MrNase
10-13-2005, 04:41 PM
Trust me.. You won't ;)
Please.. Can someone make this hack/plugin/whatever for us?! WE really need this one..
Julio
10-13-2005, 06:06 PM
I was about to post a new thread requesting a similar thread to this one... it would also be nice to have an image resize for those images linked via URLs.
MrNase
10-13-2005, 06:55 PM
I already tried to figure it out, see: https://vborg.vbsupport.ru/showthread.php?t=98325
This seems to be pretty complicated :(
COBRAws
10-13-2005, 07:41 PM
i want this too
MrNase
10-24-2005, 06:49 PM
Nobody has done it yet.. Must be really difficult since this one is more useful than most of the other modifications :)
COBRAws
10-26-2005, 02:14 AM
Check this out: https://vborg.vbsupport.ru/showthread.php?t=99286
mvigod
10-26-2005, 02:26 AM
Check this out: https://vborg.vbsupport.ru/showthread.php?t=99286
Nice but this one won't do anything for uploaded images to the forum. Only ones linked externally
MrNase
10-26-2005, 08:09 AM
Check this out: https://vborg.vbsupport.ru/showthread.php?t=99286
I was very pleased to see this one because I just read it's name.. However, it doesn't do what we want :(
COBRAws
10-26-2005, 07:52 PM
Well, the code is out there, you could make it work with the attachment.php (cant recall the exact name). So when there is an image file, it is resized with that code published within the link I provided.
Julio
10-27-2005, 07:13 PM
CobraWS:
Thanks for the link... just what I was looking for. Resize for linked photos.
oldford
12-13-2005, 03:56 PM
This would be a great hack. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.