The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
anyone plan to do this auto resize for attachments for 3.5.xxx??
|
#12
|
||||
|
||||
Attachments can be resized already as it is a default feature in vBulletin 3.5.x.
|
#13
|
|||
|
|||
Aftermath-
Please explain how resize of attachments work. Because as far as I can tell, it does NOT. It will make a thumbnail, but the original picture MUST be within the Attachments dimensions and byte size limits as set in the AdminCP. |
#14
|
|||
|
|||
Quote:
You are correct. It does not resize the image. This hack has yet to be ported to 3.5. Looking at this I think the following steps would be required to implement this: 1) hack requires possibly increasing your max upload setting php.ini depending where it is set. 2) Next you would have to take the uploaded image (without size or dimension limits) and check to see if it exceeds your set large image size (i.e. 800x600) and if so resize it to the max horizontal/vertical depending on the originals aspect ratio. 3) Next you create the thumbnail. 4) Finally you delete the original oversized image to clean up when done. Andreas mentioned this could possibly be written as plugin or product but I have not had a chance to figure out how. If anybody wants to take a crack at it then definitely have at it. I don't want to waste time hardcoding it in a file if it can be simplified for others to install as product. |
#15
|
|||
|
|||
I have some additional needs....
I'd like the ability to resize existing attachments. Right now the user or the administrator or moderator must save it to their local computer, resize it there, and then upload it to the post. I'd like the option of using the Attachments Management interface, and where you "edit" have an option to resize in place. I imported my site from Invisionboard, and am now implementing size restrictions, so it would be really valuable to have a "resize in place" function. A "mass resize in place" script would be really cool. Maybe I'll end up writing that... since I store my attachments in the file system I can simply find a large image in the database, read it its file location, run it through "convert", and then update the database with the new size. ==========edited later============== I was just looking at the database, VB also stores a filehash for the attachment. Anyone know what that is used for? Is it critical that I fix up that field if I resize the image via a script? |
#16
|
|||
|
|||
billp - check if there is any actual data in the filehash field. I think in my db it is empty.
|
#17
|
|||
|
|||
There's data in mine.
I wonder if it's from moving the files in and out of the database. It could be a way to ensure that the binaries remain unaltered in the database. |
#18
|
|||
|
|||
Yes i want this to.
If a member upload a image like 1200pix with and i haved set that max with is 900pix it should automatic resize the image to 900 is this possible |
#19
|
||||
|
||||
Hey all!
I was looking for a hack that would automatically resize all avatars to a certain dimention. So, for example, I want all avatars to be say... 25x25 in dimention. If the user tries to upload an image that is 26x30, instead of telling him "sorry, upload another one", it would instead automatically resize the image to fit perfectly. Does the current vb 3.5 version do this? If so, where do I go to set up this setting? Thanks. |
#20
|
|||
|
|||
>If a member upload a image like 1200pix with and
>i haved set that max with is 900pix it should automatic >resize the image to 900 I'm looking for such a plugin or hack for vBulletin for quite a while and found a lot of postings here from people who want the same. But so far, no solution for this. It works for Avatars and Profile pics, but not for "normal" attachment pics. My approach is: Make it as easy as possible to the user to upload pictures (which is: don't force them to understand pixel resolution, resizing pictures, etc. but just let them upload their digital camera images as they are and the software does the rest). But the main stream here seams to be: Picture posting only for the tech geeks :-( An other opinion is: Do resize with "width/height" tag in HTML (which from my point of view is a very silly idea when it comes to a 5- or 8-Megapixel picture ... Using GDlib it's only a few lines of code to automatically resize a picture, really simple. But I just can't find the hook or position in the code of vBulletin to do it by myself. ***hint*** Maybe someone from the developers can let us know where in the code the image upload is handled and where the best place would be to add the resize code??? ***hint*** Franz |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|