Page 32 of 33

Re: Announcement: New plug-in SuperSizer

Posted: Mon May 02, 2011 10:47 am
by nicmare
what is if you use width, height and fit=true ?

Re: Announcement: New plug-in SuperSizer

Posted: Mon May 02, 2011 9:19 pm
by JeremyBASS
Hello, there are many ways to do this, one is

All with width='150' height='150'

fit=true
fit=true crop=true
fit='hard' crop=true fill='#fff'

There are many more possibilities for what you're wanting, I would suggest playing with the params. I am still trying to get the MediaDeploy module out that lets you play with the image and see it dynamically. Just can't get the time out just yet. Hope this helps some.. Cheers -jeremy

Re: Announcement: New plug-in SuperSizer

Posted: Mon May 16, 2011 5:06 pm
by JeremyBASS
New version out.. this is a major update. Tons of improvements.. This is the smarty image sizer you can use... so want makes it so smart? well.. :)

Tips.. write your tag like a sentence. Ie.. supersize path with width of x and base64 encode. so

{supersizer path='domain.com/img.jpg' width='xx' base64='tag'}

that makes it easy to think about for me :)


Added PARAMS

capture -- pull images from the web, cache it, size it, cache the sized image, and serve that. !!! it's very nice ;) ie.. youtube images

base64 -- encode you images so that you can use them in things like a vCard or NMS or.... NOTE doesn't work on some browsers.. use the browsertools plugin to do and if and set up the atl image for those
auto_memory -- auto set the php memory so you don't get fatal error

memory_limit -- set what you want the memory limit to cap out at

usemap -- for image maps

return -- returns instead of echo .. good for UDTs

fit -- retooled a little for the fill

fill - if you need a fixed with but don't want to crop then use this to fill the background.. you rgb or hex values.. ie: #fff



Added function... Now there is error handling so fatal error have a better chance not to kill you site when you have out ran your php limit.




And that is just the start of what you can do with it. Please play and have fun with it.. let me know if you find any issues. And if you have a hard time using it, look for MediaDeploy. It's coming soon and is even more powerful then SuperSizer. This is the smartest image sizer you can get. Nothing comes close. :D have fun.. Cheers -Jeremy

Re: Announcement: New plug-in SuperSizer

Posted: Mon May 16, 2011 7:15 pm
by nicmare
capture is great!! thank you!!

but i still discovered an old bug :(

{supersizer url=true path=image.png width=$pagewidth height=$headerheight crop=true protect=false strip_tags=true}

returns me the image but with black background instead transparency :(

Re: Announcement: New plug-in SuperSizer

Posted: Tue May 17, 2011 11:47 am
by JeremyBASS
dang it. your right.. I'll look into what I dropped again. Sorry for the inconvenience. I will right it here shortly.

Cheers -Jeremy

Re: Announcement: New plug-in SuperSizer

Posted: Wed May 18, 2011 10:09 pm
by JeremyBASS
The corrected file has been uploaded.. again sorry for the over sight and thank you for letting me know..

Oh release notes:

Add a check for Browser support of base64 as I was corrected on my test of support for IE7+ which cause it to fail. It now corrects for this.

A few more error handling to keep it as bullet proof as a plugin can be.



Cheers -Jeremy

Re: Announcement: New plug-in SuperSizer

Posted: Thu May 19, 2011 7:04 am
by nicmare
yep, works here. thank you jeremy ;)

Re: Announcement: New plug-in SuperSizer

Posted: Thu May 19, 2011 10:12 am
by JeremyBASS
My pleasure... MediaDeploy is coming shortly as well which be a dream to use...

Let me know if there is any issues, and if you can, if you have set your memory limit for image sizing on any site, try to turn it off (or clear it I mean) and let the new auto_memory take effect if you could. Where you would have seen a fatal error you should see it to work just fine now.

Cheers -Jeremy

Re: Announcement: New plug-in SuperSizer

Posted: Tue May 24, 2011 8:22 am
by fredp
JeremyBASS wrote:New version out... let me know if you find any issues...
Hi Jeremy,

I just downloaded and tried version 0.9.6. When I turned on debugging and cleared the cache, I noticed the following error messages on the tag's help page:

Code: Select all

Warning: Missing argument 1 for SuperSizer::SuperSizer(), called in /home/xxxxxxxx/public_html/plugins/function.supersizer.php on line 1012 and defined in /home/xxxxxxxx/public_html/plugins/function.supersizer.php on line 36 Notice: Undefined variable: SS in /home/xxxxxxxx/public_html/plugins/function.supersizer.php on line 37 Notice: Trying to get property of non-object in /home/xxxxxxxx/public_html/plugins/function.supersizer.php on line 37
Once again, thanks for your efforts!
Fred P

Re: Announcement: New plug-in SuperSizer

Posted: Tue May 24, 2011 8:33 am
by JeremyBASS
oh dang .. that is the clearing of the cache that is throwing that.. well I'll right that and get a correction up soon.. Thanks for the heads up. Cheers -Jeremy

Re: Announcement: New plug-in SuperSizer

Posted: Thu May 26, 2011 7:32 pm
by Foaly*
WOW, thanks jeremy!

Re: Announcement: New plug-in SuperSizer

Posted: Wed Oct 12, 2011 1:12 pm
by nicmare
hi jeremy, i want to run supersizer as UDT. it works before 0.9.6 but now i get this error in frontend: "You have forgoten to define the orginal image. Please do so."
see my UDT in Attachment pls (characters where to long for pasting it here)

am i missing something??

params errors=true and debug=true do not work neither :(

Re: Announcement: New plug-in SuperSizer

Posted: Wed Oct 12, 2011 11:01 pm
by JeremyBASS
Hello.. how you run supersizer from a udt is this

Code: Select all

global $gCms;
$config =& $gCms->GetConfig(); 

	if(isset($params['PHOTO'])&&$params['PHOTO']!=''){
		$image = $config['root_path'].$params['PHOTO'];
		include_once 'plugins/function.supersizer.php';
		$params_array['path']=$params['PHOTO'];
		$params_array['width']='150';
		$params_array['quality']=85;
		$params_array['base64']='stright';
		$params_array['cachebuster']=false;
		$params_array['return']=true;
		$photo = smarty_cms_function_supersizer($params_array,$smarty);
}

that is just one way to do it.. I don't suggest trying to shove the whole thing in the db as it'd have pull it everytime and that is db calls I think better used for the content. But that is me.. Hope that helps.. Cheers -Jeremy

Re: Announcement: New plug-in SuperSizer

Posted: Thu Oct 13, 2011 6:57 am
by nicmare
thanks jeremy, i know its not the best idea to run it AS an udt. but i dont want to put it in the /plugins/ dir for a specific project. so you solution do not help me neither because it still depends from the plugin in the plugin dir. how do i put it all in one udt?

btw: running it as a module would also work for me, mediadeploy?? ;-)

Re: Announcement: New plug-in SuperSizer

Posted: Thu Oct 13, 2011 12:59 pm
by JeremyBASS
I'm not going to press it on why you can't :) but yes, mediadeploy is almost ready. Has all of the supersizing power but way easier to user. It's 1.10 ready. but I just have to make sure its as stable as it seems now. Tk -J