Page 11 of 33

Re: Announcement: New plug-in SuperSizer

Posted: Thu Jan 28, 2010 1:05 am
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…

Re: Announcement: New plug-in SuperSizer

Posted: Thu Jan 28, 2010 1:18 am
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?

Re: Announcement: New plug-in SuperSizer

Posted: Thu Jan 28, 2010 1:23 am
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..

Re: Announcement: New plug-in SuperSizer

Posted: Mon Feb 01, 2010 5:14 pm
by clj83
Hi Jeremy,

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

Thanks

Chris

Re: Announcement: New plug-in SuperSizer

Posted: Tue Feb 02, 2010 1:16 am
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

Re: Announcement: New plug-in SuperSizer

Posted: Wed Feb 10, 2010 8:58 pm
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

Re: Announcement: New plug-in SuperSizer

Posted: Wed Feb 10, 2010 9:02 pm
by JeremyBASS
Oh I soppose I could add a param for that.. on the list.. -J

Re: Announcement: New plug-in SuperSizer

Posted: Thu Feb 18, 2010 7:21 pm
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?

Re: Announcement: New plug-in SuperSizer

Posted: Thu Feb 18, 2010 7:48 pm
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

Re: Announcement: New plug-in SuperSizer

Posted: Thu Feb 18, 2010 8:52 pm
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!

Re: Announcement: New plug-in SuperSizer

Posted: Thu Feb 18, 2010 11:14 pm
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

Re: Announcement: New plug-in SuperSizer

Posted: Tue Mar 02, 2010 2:39 am
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

Re: Announcement: New plug-in SuperSizer

Posted: Tue Mar 02, 2010 8:28 am
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

Re: Announcement: New plug-in SuperSizer

Posted: Tue Mar 02, 2010 4:06 pm
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

Re: Announcement: New plug-in SuperSizer

Posted: Tue Mar 02, 2010 7:05 pm
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