Announcement: New plug-in SuperSizer

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

So I made a fix to the fit param where the w=h so it fits in the width and height you asked it to.  Please take is out for a test drive and let me know if you have anyissues with it.. seems stable here
http://www.corbensproducts.com/users/1/ ... zerEx.html

Tk cheers-J
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Helps if I put the test file up :D  Cheers -J
Attachments

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

darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Announcement: New plug-in SuperSizer

Post by darconny »

Hi Jeremy :)

After some time working on non web projects, now I'm back to SuperSizer testing crew  :D

So, I am near to finish a portal section of a travel site, based on CGBlog, FEU and of course SuperSizer.
I've downloaded the latest version from Forge, and read throughout this thread.

All I can say - awesome!! The crop and overwrite features are incredible, thank you very much for that.

Now, testing on localhost, I came across with some issues. The part of CGBlog detail template is like this:

 
        {if isset($entry->fields)}
           {foreach from=$entry->fields item='field'}
               
                     {if $field->type == 'file'}
                  {assign var=Photo value=$field->value}
                          {assign var=Location value=$entry->file_location}
                          {assign var=Item value=$entry->id}
                          {supersizer path="$Location/$Photo" height="450" URL=true Assign="MainPic" Protect=false overwrite=true cacheBuster=true Subdir="$Item"}
                          {supersizer path="$Location/$Photo" height="70" width="70" tagWidth="70" tagHeight="70" crop=true URL=true Assign="MinnyPic" Quality="100" Subdir="$Item"}

                        title|escape}">title|escape}" />

       {else}
         {$field->name}: {eval var=$field->value}
       {/if}
   
 {/foreach}
{/if}


1. I tried to put tagWidth and tagHeight for my thumbnails, but nothing in source tag. Am I missing something here?

2. Overwrite feature is great, but as I can see the passthrough is alway on (Subdir not working) so I just don't like the name of the path of my MainPic which is actually source of the CGblog uploaded image. The path is /uploads/cgblog/id#/image-name , if I could just change the name of default uploads folder of CGBlog.. dont know how.
 
3. Your latest version from the post above doesn't work on my setup with above template. CGBlog details page shows source files and thumbnails all on a page, instead of showing just thumbnails and full images with lightbox. (latest version from Forge works)


Thanks again
Darko
kendo451

Crop x.y don't seem to work

Post by kendo451 »

I've tried using the Crop="true,x,y" with quite a few different numbers in the x,y positions, and have found that they do not seem to influence the position of the crop at all.

Part of the question is what order the crop happens in.

I assume that it resizes first, then crops the result to fit the required dimensions.

If you know a formula to use with crop to get it to go to the top left corner, I would appreciate if you could post it here.

Thanks,
Ken
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

@darconny  your not seeing some of it work do to this.. http://forum.cmsmadesimple.org/index.ph ... #msg206308  I had to change some of the param names to match more of what the core does.  This will be good for the long run but a pain in the short trem.. Sorry about that..

so..
1. I tried to put tagWidth and tagHeight for my thumbnails, but nothing in source tag. Am I missing something here?


you are using URL (now url)  So with that it only out puts the url and nothing else ... to which it you want the tagWidth (now width_attr) you would have gone...


{supersizer path="$Location/$Photo" height="450" url=true assign="MainPic" protect=false overwrite=true}
title|escape}">{supersizer path="$Location/$Photo" height="70" width="70" width_attr="70" height_attr="70" crop=true  quality="100" subdir="$Item" alt=$entry->title|escape}

now on
2. Overwrite feature is great, but as I can see the passthrough is alway on (Subdir not working) so I just don't like the name of the path of my MainPic which is actually source of the CGblog uploaded image. The path is /uploads/cgblog/id#/image-name , if I could just change the name of default uploads folder of CGBlog.. dont know how.


there is no way to user the overwrite and subdir together as your just overwriting the original and nothing more.  So if you need to put it in a subdir just drop the overwirte.  Also (you have to check the events)  but you should be able to use the overwrite on the add/edit of the CGBlog and do the over write on the upload.


That should address all your question there I hope.. :D


@kendo451 Let me see what I can do I know it needs work and may-be I can fit in the work on the crop here shortly.. I'll see what I can do.. but for now... let say your pics are 1000x1000 and you want the corner left top you'd have something like crop="true,-500,500" which should put you in the left top starting from the center.. IIRC  I'm having to work off mem on move in the quadrants.  I know this is not always know what the original size is but that is what I'll be working on..  


Cheers -Jeremy
Last edited by JeremyBASS on Mon Apr 26, 2010 4:27 pm, edited 1 time in total.
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Announcement: New plug-in SuperSizer

Post by darconny »

Thanks Jeremy :)

I was blind and didn't notice you changed parameters call recently, sorry for that.
Now the latest SuperSizer works, and I can see tags in the source.

For the overwrite, I understand what you say generally. I need overwrite because I can't host large pictures uploaded from frontend. Also, I see that it's possible to do overwrite on the CGBlog upload, but unfortunately it's out of my knowledge at the moment.

cheers
Darko
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Look to the udt example in this thread.. It’ll show how to call supersizer from the udt and use it.. At that point you just need to look at the event and get the param that is the uploaded file, and use that.. Once you have the udt right, just attach it to the event.  That is all there is to it.. I'd write it but I'm backed up here.. but I hope that helps.. Cheers.. -Jeremy
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Announcement: New plug-in SuperSizer

Post by darconny »

Thank you very much, I'll give it a try.

regards
Darko
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Announcement: New plug-in SuperSizer

Post by darconny »

I have a crazy idea, so just a quick question:

Can I use no_output=true along with overwrite=true? That way I could have what I need with 2 SuperSizer calls.

Suppose not, just asking  :D

cheers
Darko
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Hmm.. no not atm.. but I'll see what I can do.. till then you could fake it.. you'd use the assign param to capture the output and you will not have output unless you use the smarty var... That is one way for now.. but I'll see what I can do.. -Jeremy
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Announcement: New plug-in SuperSizer

Post by darconny »

The 'fake' method works, thanks!

cheers
Darko
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

super.. glad it does what you need.. reading back a little I didn't post the udt like I thought.. so I'll get that laters.... I have it in my snadbox if you feel like looking there.. look to my sig  here for the sandbox link -J
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm
Location: the Netherlands

Re: Announcement: New plug-in SuperSizer

Post by M@rtijn »

Jeremy, this is one beautiful plugin!

Really works well, setup is easy and resized images are nice and small on the FTP, but still really good quality.  ;D

A Big thumbs up!
Make your community a better place!
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Well thank you.. I'm happy you like it and find it easy to get to the power. I will soon be releasing the new version here shortly.. it have some new cool things in it, like some changes for a ajaxy upload hook up.. :D  -J
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

So it was reported that the strip_tags=true was failing.  I have beable to reproduce that and have tested it fixed.

http://www.corbensproducts.com/users/1/ ... #testStrip

that is the test.. and I have the new file below if anyone else can plz confirm the change.  Tk and Cheers -J

don't forget that the params where changed....
http://forum.cmsmadesimple.org/index.ph ... #msg206308
Attachments

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

Last edited by JeremyBASS on Fri May 14, 2010 5:28 am, edited 1 time in total.
Locked

Return to “Modules/Add-Ons”