Page 1 of 65

ReIMG Image Resizer

Posted: Thu Jul 16, 2009 4:46 pm
by Extensions Robot
Modification name: ReIMG Image Resizer
Author: DavidIQ
Modification description: Resizes user-posted images, including or excluding signatures, that are too large, optionally overlaying a zoom button to view the original-sized image (optionally in a lightbox or even using Highslide JS).
Modification version: 2.0.3
Tested on phpBB version: 3.0.12

Download file: reimg_image_resizer.zip
File size: 196.88 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extensions Team may not be able to provide support.

-->Modification support<--

ReIMG Image Resizer

Posted: Thu Jul 16, 2009 4:46 pm
by tumba25
Modification validated/released

Notes:

ReIMG Image Resizer

Posted: Thu Jul 16, 2009 4:46 pm
by DavidIQ
Features:
  • Images are resized (downscaled) client-side using javascript.
  • Images don't first load in large format and then collapse, but instead appear only after they have been resized already.
  • An optional zoom button is overlayed on top of resized images, so you can click to the original-sized image. This button will not mess up a URL the poster might have placed around the image. :)
  • The original-sized image can open in the current window, in a new window, or in a cool lightbox or highslide. 8-)
  • Only user-posted images posted using Img BBCode or uploaded as attachment are resized. However, any other image can be resized (and/or equipped with a zoom button ;)) by adding onload and onerror events to the <img> XHTML tag.
  • You can specify the maximum dimensions in pixels (e.g. 640x480) and/or a maximum relative width (e.g. 80%).
  • All settings (maximum dimensions, zooming method) can be changed from the Administration Control Panel.
  • This MOD comes with default, neutral style sheeting built in, so you don't need to alter all your theme files. However, you can override these defaults from within your theme files, and thus unleash your own style sheeting magic on the resized images.
  • Quick loading, compressed/stripped javascript files as well as full javascript source code files are included.
  • I've successfully tested this MOD in Internet Explorer 7, Internet Explorer 6, Internet Explorer 8, Firefox 3, Firefox 2, Firefox 1.5, Firefox 1.0, Opera 9.5, Opera 9.27, Safari 3.1 and Mozilla 1.7.
Screenshots:
(Yes...shamelessly copied from TaleTN's site :lol: )
Image
Resized images with overlayed resizing button.

Image
Lightbox-resized image.

Image
Configuration in ACP.

Demo URL: http://phpbb.davidiq.com/viewtopic.php?f=9&t=353


I'd like to take this opportunity to thank TaleTN for coming up with this idea in the first place and allowing me to complete his work. Kudos to him for the ReIMG javascript.

Re: ReIMG Image Resizer

Posted: Thu Jul 16, 2009 4:50 pm
by austin881
I'd love to see this Mod in action before I install it. Any chance of a demo or would someone please post a link once they have it installed so I can see it.

Re: ReIMG Image Resizer

Posted: Thu Jul 16, 2009 5:13 pm
by DavidIQ
Demo site's not updated yet. In the meantime I have provided screenshots above 8-)

Re: ReIMG Image Resizer

Posted: Thu Jul 16, 2009 7:03 pm
by WastedJoker
Doh!

Sorry :oops:

Re: ReIMG Image Resizer

Posted: Thu Jul 16, 2009 7:15 pm
by WastedJoker
Doh!

Sorry :oops:

Re: ReIMG Image Resizer

Posted: Thu Jul 16, 2009 8:53 pm
by jmaraujo
Thanks, DavidIQ! 8-)

Re: ReIMG Image Resizer

Posted: Thu Jul 16, 2009 10:20 pm
by ChriZathens
This is a really cool one...! :D
WastedJoker wrote:I got it working on my board but you made a mistake in the install.xml file:
.....
Nope... he made no mistake... 8-)

Re: ReIMG Image Resizer

Posted: Thu Jul 16, 2009 10:28 pm
by drhime
@WastedJoker

What I see in your test is that the image gets smaller when I click the zoom icon(FF3.5)

Moreover, unlike the claim, the image DOES load in large form first & then gets resized!!!

Re: ReIMG Image Resizer

Posted: Thu Jul 16, 2009 11:17 pm
by WastedJoker
drhime wrote:@WastedJoker

What I see in your test is that the image gets smaller when I click the zoom icon(FF3.5)

Moreover, unlike the claim, the image DOES load in large form first & then gets resized!!!
I'm using FF3.5 also - the image is resized correctly and when yuo click on the Zoom icon in opens the image smaller but when you click the + icon it becomes larger.

Re: ReIMG Image Resizer

Posted: Thu Jul 16, 2009 11:18 pm
by WastedJoker
:oops:

Re: ReIMG Image Resizer

Posted: Thu Jul 16, 2009 11:26 pm
by DavidIQ
WastedJoker wrote:I got it working on my board but you made a mistake in the install.xml file:

Where it says:

Code: Select all

		<open src="styles/prosilver/imageset/imageset.cfg">
			<edit>
				<find>img_icon_user_warn =</find>
				<action type="after-add"><![CDATA[
img_icon_reimg_zoom_in = icon_reimg_zoom_in.gif*20*20
img_icon_reimg_zoom_out = icon_reimg_zoom_out.gif*20*20]]></action>
			</edit>
		</open>
It should say:

Code: Select all

		<open src="styles/prosilver/imageset/imageset.cfg">
			<edit>
				<find>img_icon_user_warn = icon_user_warn.gif*20*20</find>
				<action type="after-add"><![CDATA[
img_icon_reimg_zoom_in = icon_reimg_zoom_in.gif*20*20
img_icon_reimg_zoom_out = icon_reimg_zoom_out.gif*20*20]]></action>
			</edit>
		</open>
Sorry to burst your bubble but...there is no mistake in the find. Look at it and think about it. Finding this:
img_icon_user_warn =
is the same as finding this:
img_icon_user_warn = icon_user_warn.gif*20*20

Partial finds are common in MODs.

As for your second problem about attachment.html...well that's not really a problem with the MOD and no changes need to be done to it. That is a problem with AutoMOD. Please either report it in the AutoMOD forum or in the AutoMOD bug tracker.

Re: ReIMG Image Resizer

Posted: Fri Jul 17, 2009 12:16 am
by Muad''Dib
Thanks DIQ... !

Re: ReIMG Image Resizer

Posted: Fri Jul 17, 2009 12:46 am
by spaceace
ok, i can't for the life of me download this mod from this site. i did however download it from DavidIQ's site with no problem..... but seems to be a different file size :roll:

anyway, i'm on dial-up(i know, it's suck to be me :lol: ) and only have the problem with this file on this site. it only gets to 94.14% then errors out. i've tried FF, IE6 and 7, and also have tried IDM(Internet Download Manager) and all are the same.