![]() ![]() I was just looking at the database, VB also stores a filehash for the attachment. 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. 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.Ī "mass resize in place" script would be really cool. I'd like the option of using the Attachments Management interface, and where you "edit" have an option to resize in place. 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 ability to resize existing attachments. I don't want to waste time hardcoding it in a file if it can be simplified for others to install as product. Warning: Please note that this hack will resize all LARGE images in the IMG tags. If anybody wants to take a crack at it then definitely have at it. Image Resizer - CMS Blogs Posts Signatures Albums VMs PMs - Using JQuery Script This hack resizes LARGE images in CMS, Blogs, Posts, Signatures, Albums, Visitor Messages, Private Messages. 800圆00) and if so resize it to the max horizontal/vertical depending on the originals aspect ratio.Ĥ) Finally you delete the original oversized image to clean up when done.Īndreas mentioned this could possibly be written as plugin or product but I have not had a chance to figure out how. Looking at this I think the following steps would be required to implement this:ġ) hack requires possibly increasing your max upload setting php.ini depending where it is set.Ģ) 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. It will make a thumbnail, but the original picture MUST be within the Attachments dimensions and byte size limits as set in the AdminCP. Because as far as I can tell, it does NOT. Please explain how resize of attachments work. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |