Announcement: New plug-in SuperSizer

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Announcement: New plug-in SuperSizer

Post by nicmare »

what is if you use width, height and fit=true ?
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post 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
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post 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
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Announcement: New plug-in SuperSizer

Post 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 :(
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post 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
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post 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
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Announcement: New plug-in SuperSizer

Post by nicmare »

yep, works here. thank you jeremy ;)
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post 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
fredp
Forum Members
Forum Members
Posts: 218
Joined: Sun Jul 27, 2008 1:36 am
Location: USA

Re: Announcement: New plug-in SuperSizer

Post 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
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post 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
Foaly*
Translator
Translator
Posts: 150
Joined: Sun Mar 29, 2009 3:32 pm
Location: London

Re: Announcement: New plug-in SuperSizer

Post by Foaly* »

WOW, thanks jeremy!
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Announcement: New plug-in SuperSizer

Post 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 :(
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post 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
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Announcement: New plug-in SuperSizer

Post 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?? ;-)
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post 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
Locked

Return to “Modules/Add-Ons”