Announcement: New plug-in SuperSizer

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Glad you like it.. but um.. the last version should not have  imageantialias in it anymore.. hmmm .. Guess I need to dbl check since I replaced it for a faster processing way to get the same overall quality... Up I was planning to add a GD lib check...

But I just did find a bug.. in gallery.. if the file has () in it then it can't find the file... this should fix it for now... 

Code: Select all

{assign var=IMGis value=$image->file|replace:'%28':'('|replace:'%29':')'}<!-- {$IMGis}  -->
   <a href="{supersizer path=$IMGis alt="" height='700' Quality='100' cacheBuster=true  Subdir="gallery" URL=true Protect=false}{*$image->file*}" title="{$image->title}" rel="lyteshow[gallery]"><img src="{$image->thumb}" alt="{$image->title}" /></a>

It also would be nice to be able to suppress the error message that there has been a path issue.
If the image does not exist i simply would like to see no image or a dummy picture or just an inline div with the measure of the picture and a tiny hint that the image hasn't been found.



What error? Sorry I thought I had got them all  suppressed so it die quietly unless in debug. the next version will have a pass thou but adding a default image can be added no sweat…
NaN

Re: Announcement: New plug-in SuperSizer

Post by NaN »

I've downloaded v0.9 from forge.
And in Line 41 it says:

Code: Select all


//get the image dimensions
if(!@getimagesize($this->strOriginalImagePath)){
	echo "<h2>There is a path issue!</h2><h3>Does this look right?</h3><strong>Path:</strong>".$this->strOriginalImagePath."<br/>";
	return false;
}

A h2 error message is not quite silent ;)
(and the image path on server should not be printed out to public ;) )

and in Lines 218 and 223 in function _resize() it says

Code: Select all


imageantialias($this->resResizedImage, true);

Is there any newer version than the one in the forge?
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Hmm.. well I'll be buggered.. no these changes are in localhost... hard to keep track of what and when I published versions  ;D .. Well the new version should be out soon with the new params and features... this weekend I'd hope..
clj83
Forum Members
Forum Members
Posts: 195
Joined: Tue Jul 07, 2009 4:09 pm

Re: Announcement: New plug-in SuperSizer

Post by clj83 »

Hi Jeremy,

I wonder if you have had a chance to build the "overwrite" function into Supersizer yet?

Thanks

Chris
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Getting close.. I have many projects in the way... I expect sometime this week.. but since writing mods don't pay I do pay jobs first and then fix bugs and then upgrades and added features...

Soon :D
kendo451

Re: Announcement: New plug-in SuperSizer

Post by kendo451 »

Hi Jeremy,

This plugin is very useful.  However, it would be more helpful if it includes height and width attributes of the image tag output by default.  This is so that the browser will display a placeholder of the correct size and shape while waiting for the image to download.

Thanks,
Ken
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Oh I soppose I could add a param for that.. on the list.. -J
pepa46
New Member
New Member
Posts: 2
Joined: Thu Feb 18, 2010 7:06 pm

Re: Announcement: New plug-in SuperSizer

Post by pepa46 »

I have tried to use SuperSizer together with Gallery module. I have changed original part of Gallery template

Code: Select all

 href="{$image->file}"
to new one

Code: Select all

href="{supersizer path=$image->file width="800" URL="true"}"
With large images (with width 800+) it works without problems and bigger images are resampled to 800px. But if I try to open smaller images in gallery (width 1-799 px) there is no image opened neither original nor resampled. The are only resampled bigger images in temporary directory.

I have tried to use parameter Protect=true (even it's default value) but the result was the same. Do you have any idea how can I solve this problem?
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

pepa46 wrote: I have tried to use parameter Protect=true (even it's default value) but the result was the same. Do you have any idea how can I solve this problem?
IIRC Protect=true is the default... did you try Protect=false?  also that will size up.. so lower in the post there shows how to not size if less the a width...

I'm slowly working these things out as I have time and I'm really hoping to have a new release here soon... Cheers -Jeremy
pepa46
New Member
New Member
Posts: 2
Joined: Thu Feb 18, 2010 7:06 pm

Re: Announcement: New plug-in SuperSizer

Post by pepa46 »

I have tried Protect=false as well and it works as I supposed - big images are reduced and small images are enlarged (but it doesn't look very well). There are two ways how to fix it:
1) Use if conditions while working with images and small images display with original path (without using SuperSizer).
2) Wait until new version of SuperSizer with above function support.

In any case thanks for your help!
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

I thought I'd throw this out.. what can be done is a combo of this... so an image that is 30x30 wouldn't scale to a 100x100 well at all.. but a 75x75 would.. and using filters like edge detect , smooth and whatever combo you want you could push from may-be a 50x50 but you'd have to tweak but good on it...

so you set the min width at 75px in the if statement and the width at 100 in supersizer and Protect=false ... just another way to handle it.. Cheers -J
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

so .. here is the new version..

Lightened the script by ~10kb to help lighten the footprint to
make this the fastest lightest version yet. Also:

4 new params
tagWidth (XXXpx)
tagHeight (XXXpx)
passThru (true/false) default false
showErrors (true/false) default true


Enjoy... if I didn't get to your suggestion I may have missed it if not previously overruled

Cheers
jeremyBass
Last edited by JeremyBASS on Tue Mar 02, 2010 4:01 pm, edited 1 time in total.
clj83
Forum Members
Forum Members
Posts: 195
Joined: Tue Jul 07, 2009 4:09 pm

Re: Announcement: New plug-in SuperSizer

Post by clj83 »

Hey,
This looks great. I think with the passThru feature I can do exactly what I want but I am not sure how to implement it and I cant find any suggestions in this post.

Could anyone tell me how I would add supersizer to news fesubmit with the passThru feature so that images are resized on as they are uploaded so say a maximum file size of 200k? Im pretty sure this is possible now but I havent had any luck getting it to work?

If anyone could point me in the right direction it would be greatly appreciated.

Thanks

Chris
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

There is no real way to say size to a file size of 200kb... that would endup in different sizes and qualities.  That is not a good thing or easy thing to do... Sorry this plugin will never do that.  The passThru is passThru=true  ...

Hope this  helps
Cheers
Jeremy
clj83
Forum Members
Forum Members
Posts: 195
Joined: Tue Jul 07, 2009 4:09 pm

Re: Announcement: New plug-in SuperSizer

Post by clj83 »

Hi Jeremy,

Thanks for the reply. I must have misunderstood some of the earlier conversation in this post. Is there anyway I could do any sort of re-size to the original file at any point using supersizer and the news module?

Thanks

Chris
Locked

Return to “Modules/Add-Ons”