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 »

Also Here is the server's GD set up...

PHP Version 5.2.9


gd
GD Support  enabled 
GD Version  bundled (2.0.34 compatible) 
FreeType Support  enabled 
FreeType Linkage  with freetype 
FreeType Version  2.2.1 
T1Lib Support  enabled 
GIF Read Support  enabled 
GIF Create Support  enabled 
JPG Support  enabled 
PNG Support  enabled 
WBMP Support  enabled 
XPM Support  enabled 
XBM Support  enabled 
See we are close in versions but I'm up higher on the php version... may try that... but that should only affect the filters... mostly that the colorize and pixilate will not work...

-Jeremy
Last edited by JeremyBASS on Fri Nov 27, 2009 6:10 pm, edited 1 time in total.
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Ha... found it.. typo for the height is causing it.. try this file...

-Jeremy
Attachments

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

JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Ok.. here is the last one before a new version... plz test with this one... I think everyone will like the output much more.  The files sizes are smaller and I add imageantialias() in the resizing and replaced imagecopyresized for imagecopyresampled... let me know if htere is any issues plz..

Cheers
Jeremy
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 »

Testing.. I think we are close.. not working with 'height' parameter, but working with 'width' parameter set. I used the file from your last post..size 22,473.

Also, when I use width parameter, I get this error:
Warning: imageantialias(): supplied argument is not a valid Image resource in C:\xampp\htdocs\cms-1.6.6\plugins\function.supersizer.php on line 47

regards
Darko
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

ok.. so fix the imageantialias error... also I put up the height test  http://www.corbensproducts.com/users/1/ ... zerEx.html at the bottom with this settup

Code: Select all


 <h3>At Quality=55 filter="SMOOTH" farg1=50 on the height param</h3>
{supersizer path="uploads/images/IMG_5127[1].jpg" height="100" alt="SMOOTH" Subdir=$oneuser.id cacheBuster=true Quality=55 filter="SMOOTH" farg1=50 Suffix="EX3"}
{supersizer path="uploads/images/IMG_5127[1].jpg" height="200" alt="SMOOTH" Subdir=$oneuser.id cacheBuster=true Quality=55 filter="SMOOTH" farg1=50 Suffix="EX3"}
{supersizer path="uploads/images/IMG_5127[1].jpg" height="300" alt="SMOOTH" Subdir=$oneuser.id cacheBuster=true Quality=55 filter="SMOOTH" farg1=50 Suffix="EX3"}
{supersizer path="uploads/images/IMG_5127[1].jpg" height="400" alt="SMOOTH" Subdir=$oneuser.id cacheBuster=true Quality=55 filter="SMOOTH" farg1=50 Suffix="EX3"}
so this should fix it... new file here... plz test and let me know...
Cheers
Jeremy
Attachments

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

JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

I thought that I'd point this out for anyone new to this plug in... on the test page there is 46 (atm) images... all made from only 3... try that in PS and compare your times... ;)  just a fun fact  ;D
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Announcement: New plug-in SuperSizer

Post by darconny »

^^  :D

All I can say.. perfect!! Everything works as I can see.. I'll do more tests in next few hours but I think that's it.

Also, I have to notice that now the algorithm is excellent..no need for smoothing, thumbnails and large images come out just like from PS. And to everyone, I'm that kind of lunatic designer that care about every single pixel  :D - all I can say is that resized images are of great quality.

Now I have to test filters.. come back later on.

Just one thought.. how hard would be to implement some 'Auto' filters, like AutoLevels, AutoContrast AutoColor etc?
Please don't bother with this right now, just asking.. maybe for some of the next versions.

Absolutely great work, thank you very much..

Cheers
Darko
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Super.. I figured the new resampling would be liked better... on
Just one thought.. how hard would be to implement some 'Auto' filters, like AutoLevels, AutoContrast AutoColor etc?
hmm.. nice idea .. not sure what it'd take... I think right now getting the filters to work together, so you'd have BRIGHTNESS and CONTRAST together which would/could greaty correct images... but hmm to autodetect... I think it could be done, but after many other things first...

What I will have later is a jquery front end script that will allow a use to over write the created file, with the user controlled settings... this will work with the cropped image setting I'm going to work on next...

Looks like there is a lot of docs to write for the filters now...  :-\ not looking forward to that...

Well off to make and publish the new version in a few hours... let me know if anything pops up..

Cheers
Jeremy
Last edited by JeremyBASS on Fri Nov 27, 2009 8:02 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 »

Well, I think it could be useful.. lets say AutoLevels, so all images that come from front-end are somehow treated automatically.
But it isn't necessary at the moment.

The java script would be great, so that way non-designers could alter images when uploading images through cms.

My opinion is that the crop feature is something that should be implemented first.

FYI - I can't see any problem at the moment.. everything works, filters also.

One more issue that I'm thinking of right now - need your opinion. I use Supersizer along with CGBlog, building some kind of travel portal where feu users could post their articles along with few images per article. I derive images from CGBlog articles folder, and at the first page load Supersizer creates folder for every article with resized images. Can I delete the source uploaded images, with no consequences? Source images would be about 5-15MB per article and with many users and articles I'm not sure if I would be able to store all that on a web server. As I can see once the Supersizer creates images, it does not need for source images anymore, as long as I don't change the settings (no new call). What do you think?

cheers
Darko
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

I think that one issue would be by deleting of the source images after the creation is if... if you cleared the cache... then it's try to pull from the source... so I'd keep that in mind... but... if you note the help I have already thought ahead here a little... you could adjust the uploads folder in the cmsms config.php file and then use the rootUrl param like this...

rootUrl="http://media.domain.org/uploads"

so you should be able to use image form a different server... thou the set up would total need to be tested and worked... I'm going to write the docs and publish the new version shortly since you said all seemed good in the tests, and mine are good to...

Cheers
Jeremy
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

ok... New version is out...

SuperSizer
Package: RC0.x
Version: RC0.8





• filter- NEGATE, GRAYSCALE, BRIGHTNESS, CONTRAST, COLORIZE, EDGEDETECT, EMBOSS, GAUSSIAN_BLUR, SELECTIVE_BLUR, MEAN_REMOVAL, SMOOTH, PIXELATE

• Massive improvement of the overall quality of the processes image and smaller overall file sizes

• Did I mention filters!!! :D

Also it's been well tested by many people and sites.


For those that don't want to scorll back to see what all you get in this plug-in here is the uptodate list...


path - Image full pathname eg: uploads/images/test.jpg or $entry->logo_path in Company Directory etc...
rootUrl (optional) - supersizer creates a temp director in the upload folder. If you move the path to the uplaod to a subdomain you may guide the output with this.
Exapmle: you changed $config['uploads_path'] = '/var/www/vhosts/domain.org/httpdocs/uploads';
to $config['uploads_path'] = '/var/www/vhosts/domain.org/subdomains/media/httpdocs/uploads';
now the uploads url would not work as it would be http://www.domain.org/uploads
So it can be changed here to media.domain.org/uploads (NOTE: watch your / )
For an example visit http://www.northcentralidaho.org/SERVIC ... HANTS.html and drill down to a company to which you'll see images coming from the subdomain

cacheBuster (optional) Default:false - This is to instantly uncache an image on the client side after a new uploaded photo is SuperSized... ie: Canyon House.-w150-h0-p0.jpg?1255225007 ( true/false )
Protect (optional) Default:false - Don't resize if smaller.. ie: don't size up if true ( true/false )
Quality (optional) Default:85 - Resize image at set Quality(NOTE: 1-100 ).
class (optional) - Add a class
alt (optional) - Add an alt
id (optional) - Add an id
title (optional) - Add a title
stripTag (optional) Default:false - stripTag take a full img tag passed in by the param path="" and makes it usable for SuperSizer ( true/false )
URL (optional) - just sizes and outputs the url. you could use this in and XML output, lets say to make a map icon for CGGoogleMaps thru a CGFeedmaker output of a kml/xml
noOutPut (optional) Default:false - just sizes the image. This is good for galleries ( true/false )
Prefix (optional) - Add a Prefix to the temp file name
Suffix (optional) - Add a Suffix to the temp file name
Subdir (optional) - Create Subfolders -- Organize your photos from within the SuperSizerTmp folder ( Subdir=$oneuser.id or Subdir="foo/bar")
filter (optional) - EX: filter="NEGATE"
    NEGATE - Reverses all colors of the image.
    GRAYSCALE - Converts the image into grayscale.
    BRIGHTNESS - Changes the brightness of the image. Use farg1 to set the level of brightness. (1-200)
    CONTRAST - Changes the contrast of the image. Use arg1 to set the level of contrast.(-100 - 100)
    COLORIZE - Use farg1 , farg2 and farg3 in the form of red , blue , green and farg4 for the alpha channel. The range for each color is 0 to 255. Alpha channel, A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent
    EDGEDETECT - Uses edge detection to highlight the edges in the image.
    EMBOSS- Embosses the image.
    GAUSSIAN_BLUR - Blurs the image using the Gaussian method.
    SELECTIVE_BLUR - Blurs the image.
    MEAN_REMOVAL - Uses mean removal to achieve a "sketchy" effect.
    SMOOTH - Makes the image smoother. Use farg1 to set the level of smoothness(1 - 100) 1 is full weigth of the smoothing where 100 you'd notice almost nothing.
    PIXELATE - Applies pixelation effect to the image, use farg1 to set the block size in pixels and farg2 whether to use advanced pixelation effect or not (defaults to FALSE), to set the pixelation effect mode.
farg1 (optional) - First argument for the filters
farg2 (optional) - Second argument for the filters
farg3 (optional) - Third argument for the filters
farg4 (optional) - Fourth argument for the filters
percentage (optional) - Resize image in percent of original eg. 50%.
width (optional) - Resize image on width and height will resize accordingly to keep aspect ratio
height (optional) - Resize image on height and width will resize accordingly to keep aspect ratio
Assign (optional) - Assign the output (return the smarty assignment) Use in conjunction with out without URL
debugIT (optional) Default:false - Get an array of the pre and post images... the original and the resized ( true/false ) This information is required for any support
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 »

It appears that SuperSizer version RC0.8 takes roughly 580% longer than version RC0.7 to repopulate the SuperSizerTmp cache.

I noticed the problem and did a *crude* performance comparison to quantify the difference:
1) A Gallery page with 37 images of varying sizes was used for the test.
2) Tag call used for the test runs:
  {supersizer path=$image->file Subdir="$subdir" URL=true Assign='new_path' height='480px' Quality='100' cacheBuster=true Protect=false}
3) The supersizer cache was cleared between runs.
4) Browser (Firefox 3.5.5) cache was NOT cleared between runs.
5) Server: CMSMS 1.6.6 on localhost (laptop with openSUSE 11.2).
6) After reloading the page using each version of the plugin, the CMSMS page stats, at the end of the page source, were compared.

Results:version page load stats
--------- ---------------------------------------------
RC0.7
RC0.8


24.6/3.6 = 683.3%

That's a 583% increase in time from RC0.7 to RC0.8.  I've run the test a few times and the results are consistent.

My guess is that this is a image-quality vs time issue related to this item in the release notes:
• Massive improvement of the overall quality of the processes image and smaller overall file sizes
Hope this helps,
Fred
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
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 noticed also that now resizing process takes longer. But this is just first time page loads, right?
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

hmmm I'll have to take a look... but
darconny wrote: I noticed also that now resizing process takes longer. But this is just first time page loads, right?
yes only the first time would fall victim to this..

now in theory with the replaced imagecopyresized for imagecopyresampled (which would be the culprit here) the times would vary in the complexity and size of the original image as PS does.  Which may explain why I’m see a gain in speed and you two a lose. 

The only solution to this is to have a Sampled=true where when set true imagecopyresampled is use and when set to false imagecopyresized would be used… that would restore the speed.

Now let’s say you did use Sampled=false with filter ="SELECTIVE_BLUR" too overcome the sharper resize, you still would have an increase... so just some things to think about it... I'll see about add it... should be easy..

Cheers
Jeremy
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Well you asked for it and here it is !!!  ;D This version I have added params

• Sample- (optional) Default:true - This choose a low quality resize which can be much faster in the processing time.  Remember the image is only resized once and then cached so this is only needed for sites with ultra high turnover on the resized images.

• style- (optional) - Add a inline style

Also so I took care of a super rare gif transparence issue

If some one would test I'd be greatful and then publish it ... thank you ..

Cheers
Jeremy
Attachments

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

Locked

Return to “Modules/Add-Ons”