Announcement: New plug-in SuperSizer

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
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 »

uniqu3 wrote: {supersizer path="uploads/news/id$id/$image" unique='true'}
i am not sure if this script is related to your issue but afaik you should avoid using vars in "".
heres my example which i use in cgcalendar where Flyer is my image upload field:

Code: Select all

{if $event.fields.Flyer}
  {capture assign=imgsrc}{root_url}/uploads/images/events/{$event.fields.Flyer}{/capture}
  {supersizer width=220 height=100 path=$imgsrc strip_tags=true passthru=true crop="true" filter="GRAYSCALE"}
{/if}
uniqu3

Re: Announcement: New plug-in SuperSizer

Post by uniqu3 »

Update:
ok i captured the paths as in your example but with no success
{capture assign='pathfrom'}{root_url}/uploads/news/id{$id}/{$image}{/capture}
{capture assign='pathto'}{root_url}/uploads/slider{/capture}
{supersizer from=$pathfrom to=$pathto unique="true" strip_tags="true"}
And the error:
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w0085095/demo/http://demo.i-arts.eu/uploads/slider' for writing: No such file or directory in /www/htdocs/w0085095/demo/plugins/function.supersizer.php on line 259
The only thing that has changed is that i have http://demo.i-arts.eu in the path but yes this is not correct path at all.

Update: changed path to to="uploads/images", now i get another error.
Warning: unlink(/www/htdocs/w0085095/demo/uploads/images) [function.unlink]: Is a directory in /www/htdocs/w0085095/demo/plugins/function.supersizer.php on line 576

Warning: imagejpeg() [function.imagejpeg]: Unable to open '/www/htdocs/w0085095/demo/uploads/images' for writing: Is a directory in /www/htdocs/w0085095/demo/plugins/function.supersizer.php on line 259
Last edited by uniqu3 on Wed Sep 15, 2010 12:16 pm, edited 1 time in total.
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Hello, sorry, been gone for a bit.. so..

{capture assign='pathto'}{root_url}/uploads/slider{/capture}
  that needs to have the full name IIRC .. id{$id}/{$image} needs to be added..
ie: {capture assign='pathto'}{root_url}/uploads/slider/id{$id}/{$image}{/capture}

I will need to check thou.. I need to get some things done but I hope I'll be able to look in to this later today.  Cheers -Jeremy
User avatar
NikNak
Forum Members
Forum Members
Posts: 183
Joined: Fri Oct 02, 2009 2:28 pm

Re: Announcement: New plug-in SuperSizer

Post by NikNak »

Sorry everyone - post removed

Was having very confusing issues but they have sorted themselves out - (am still confused as to how)

Nik
Last edited by NikNak on Thu Sep 30, 2010 12:04 pm, edited 1 time in total.
kendo451

fillHW replaced by fill_attr ?

Post by kendo451 »

I was using fillHW=true on the older supersizer.  I upgraded to the newest version and it no longer works.

Has this been replaced by fill_attr ?

Thanks,
Ken
mr.bacan

Re: Announcement: New plug-in SuperSizer

Post by mr.bacan »

Hi everyone, I've read the entire post looking for a solution to my problem and nothing.

I'm using:
* Gallery 1.4.1
* SuperSizer 0.9.4
* CMSMS 1.8.2

I'm using SuperSizer to reduce the file size of uploaded images via FTP. But I'm facing several issues:

First tried using this as suggested:
file width="800" URL="true"}" title="{$image->titlename}" rel="gallery">thumb}" alt="{$image->titlename}" />
and I get this as the resulting HTML code
" title="100_2659.JPG" rel="gallery">
First I don't know why I get that <img src=" and second the extremely long name 100_2659.-w800-h0-p0-q85-F-----S1-c.jpg?1287093486

If i just eliminate the SuperSizer it all returns to normal and works.
Could someone please help me on this. I've tried several ways to get around this with no luck at all.

Thanks in advance.

Mr. Bacan
kendo451

Re: Announcement: New plug-in SuperSizer

Post by kendo451 »

The latest version of supersizer has all lower case attributes.

Change URL="true" to lowercase.
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

I'm home sick, I'll get back to these, and I saw the BR. I'll get to this in a few day when I'm well .. cheers -Jeremy
mr.bacan

Re: Announcement: New plug-in SuperSizer

Post by mr.bacan »

@kendo451
Change URL="true" to lowercase
Thank you so much, that solved my main problem. Now the gallery is working as it should.
But I'm still struggling with the long name issue. The auto-generated images on uploads/SuperSizerTmp/ folder are extremely long.

Original name:
100_2659.jpg

SuperSizer name:
100_2659.-w800-h0-p0-q85-F-----S1-c.jpg

Why could that be?

Thanks again for your help.

Mr. Bacan
kendo451

Re: Announcement: New plug-in SuperSizer

Post by kendo451 »

That's on purpose. Ask Jeremy why.
NaN

Re: Announcement: New plug-in SuperSizer

Post by NaN »

It seems like the filename contains some certain params.
So it won't be overridden if you show the same image twice but with different params.
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Good morning..

@mr.bacan  this

Original name:
100_2659.jpg

SuperSizer name:
100_2659.-w800-h0-p0-q85-F-----S1-c.jpg


This in short is to let you have as many versions of the same image in all different ways.. and also .. so that at a glance you can grab all the images that have w800 (800 px width).  But if you don't like that there is a param to remove that.


@kendo451
Has this been replaced by fill_attr ?
Yes you are correct  and I'll have to go back and look at you BR..


Cheers -Jeremy
Cerulean
Forum Members
Forum Members
Posts: 172
Joined: Mon Nov 01, 2010 8:56 am
Location: New Zealand

Re: Announcement: New plug-in SuperSizer

Post by Cerulean »

Jeremy, thanks for alerting me to this great plugin. I have read through this thread and it is clear that SuperSizer can be very powerful in the hands of those who know what they're doing :)

What I would love to be able to do with SuperSizer is manipulate images that are inserted into a {content} block by users via TinyMCE. I understand that this would involve using SuperSizer in a UDT that does some sort of find/replace operations, and attaching the UDT to an event. Sadly, I'm a designer rather than a programmer and I don't (yet) have the skills to do this. If someone with programming chops can help I'd really appreciate it.

Two uses of SuperSizer that I think would be very handy...

1. For when you trust users to enter sensible width/height attributes via TinyMCE: find the height/width parameters set in TinyMCE and replace the tag with a SuperSizer tag that resizes the image to that width/height.

2. For when you want to set specific sizes and filters for images in a particular {content} block: if an tag has a class="MyGrayscaleImage" output SuperSizer tag with "x" parameters, if an tag has a class="MySquareImage" output SuperSizer tag with "y" parameters, else output SuperSizer tag with "z" parameters.

This sort of funtionality would solve so many of the headaches I have with clients taking a carefully designed template and messing/uglifying it up with huge, randomly-shaped images :)
kendo451

How to get SuperSizer working with NewsletterMadeSimple

Post by kendo451 »

Newsletter Made Simple allows you to use Smarty tags, plugins and module calls in the Email templates.

This is extremely useful, as for example, you can have a product summary template that randomly puts three products from a certain category in the header or footer of your email Newsletter.

The problem is, I can't get supersizer to work in NMS.

I think the reason is that NMS is processing the email template in a php file within the NMS module directory.  Supersizer expects to be in the CMS root.  So it can't find the paths.

Jeremy, do you know of a way around this?
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

@kendo451  I'll do a test.. see if I can make it work in NMS.. cause to be honest.. I swear I tested that and it worked..

@cerulean  I'm not sure I 100% fallow your question..

I'll get back. tk -J
Locked

Return to “Modules/Add-Ons”