Announcement: New plug-in SuperSizer
Re: Announcement: New plug-in SuperSizer
what is if you use width, height and fit=true ?
Re: Announcement: New plug-in SuperSizer
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
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
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.
have fun.. Cheers -Jeremy

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

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.

Re: Announcement: New plug-in SuperSizer
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
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
dang it. your right.. I'll look into what I dropped again. Sorry for the inconvenience. I will right it here shortly.
Cheers -Jeremy
Cheers -Jeremy
Re: Announcement: New plug-in SuperSizer
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
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
yep, works here. thank you jeremy 

Re: Announcement: New plug-in SuperSizer
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
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
Hi Jeremy,JeremyBASS wrote:New version out... let me know if you find any issues...
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
Fred P
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
- Abraham Lincoln
Re: Announcement: New plug-in SuperSizer
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
WOW, thanks jeremy!
Re: Announcement: New plug-in SuperSizer
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
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.]
Re: Announcement: New plug-in SuperSizer
Hello.. how you run supersizer from a udt is this
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
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);
}
Re: Announcement: New plug-in SuperSizer
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??
btw: running it as a module would also work for me, mediadeploy??

Re: Announcement: New plug-in SuperSizer
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
