Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

JS/AJAX dynamic resize of images in [img] tags

Aloittaja stealthx32, joulukuu 19, 2007, 09:27:09 AP

« edellinen - seuraava »

stealthx32

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/ [nofollow]


karlbenson

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

stealthx32

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?

karlbenson

No it doesnt label them.
The Integrate lightbox mod is under Creative Commons.

Advertisement: