Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Aiheen aloitti: stealthx32 - joulukuu 19, 2007, 09:27:09 AP

Otsikko: JS/AJAX dynamic resize of images in [img] tags
Kirjoitti: stealthx32 - joulukuu 19, 2007, 09:27:09 AP
Here's a request that I'm surprised hasn't come up.  Maybe I'm bad at searching.

Here's an excellent JS/AJAX implementation of image resizing (pretty much identical to how SMF manages attached images, with a small preview image that can be dynamically expanded by clicking), except it applies to externally linked images instead of attachments.  Currently it's only available for VBulletin, but it would be nice if someone could contact the author and ask for the source code to port to SMF.

http://www.ncode.nl/vbulletinplugins/

Otsikko: Re: JS/AJAX dynamic resize of images in [img] tags
Kirjoitti: karlbenson - joulukuu 19, 2007, 12:01:47 IP
Personally I use the max height/width core feature in smf to resize the image to be less than 480x480.

If you want a way to show the image then you could try Integrate Lightbox.
http://custom.simplemachines.org/mods/index.php?mod=1019
Otsikko: Re: JS/AJAX dynamic resize of images in [img] tags
Kirjoitti: stealthx32 - joulukuu 21, 2007, 10:23:50 AP
Hmm, interesting.  Does that core function label images that have been resized?  Perhaps I can selectively add the lightbox to the images that have been.  Your mod is open source, correct?
Otsikko: Re: JS/AJAX dynamic resize of images in [img] tags
Kirjoitti: karlbenson - joulukuu 28, 2007, 12:59:48 IP
No it doesnt label them.
The Integrate lightbox mod is under Creative Commons.