Announcing SLIR 2.0b4

522 views
Skip to first unread message

Joe Lencioni

unread,
Dec 22, 2010, 3:30:16 PM12/22/10
to smart-lencioni...@googlegroups.com
I just posted a new version of SLIR (2.0b4) to the downloads page. http://code.google.com/p/smart-lencioni-image-resizer/downloads/list

This release has been a long time in the making, so I will try to summarize the most important changes here. All changes can be seen in SVN http://code.google.com/p/smart-lencioni-image-resizer/source/list

BIG, IMPORTANT CHANGE:

The configuration file is entirely different. Instead of a file that defines a bunch of constants, there is now a class with static variables as defaults (slirconfigdefaults.class.php) that should be overwritten if you want your configuration to be different than the default config. Just copy slirconfig-sample.class.php to slirconfig.class.php and override values in there. If you had customized your config file, you will need to customize it again when upgrading to this version. (Issue 23)

ADDITIONAL CHANGES:

* SLIR now has a garbage collector that will try to help keep your cache clean. Settings can be tweaked in the configuration file. Look for $garbageCollectProbability, $garbageCollectDivisor, and $garbageCollectFileCacheMaxLifetime. If your cache is really huge, this may be slow or have some issues the first time it is run.

* There was a problem with the crop ratio delimiter (:) on some servers (particularly IIS). You can now specify your crop ratio by using either a colon (:) or a period (.) like this: /slir/w100-c1:1/image.jpg or /slir/w100-c1.1/image.jpg. (Issue 24)

* There is a new cropping mode: topcentered. When cropping images off the top and bottom, it will retain the top of the image and discard the bottom. When cropping images off the left and right, the crop will be centered. To use this as your default cropper, set $defaultCropper = SLIR:CROP_CLASS_TOP_CENTERED in your config file. (Issue 27)

* You can now specify what cropper you want to use in each request by adding it to the crop ratio separated by either a colon or a period. For example, if you use the smart cropper by default and you want a particular image to use the centered cropper, you can specify this like /slir/w100-c1:1:centered/image.jpg (Issue 9)

* SLIR now tries to calculate the amount of memory it will need for each request dynamically based on the image's dimensions. (Issue 28)


I hope you like this new version. Please let me know how it works out for you.

If you have any questions, please post them to the discussion group.
If you find a bug, please post it to the issue tracker: http://code.google.com/p/smart-lencioni-image-resizer/issues/list
If you feel inclined to leave something in the tip jar, here's your link: http://bit.ly/slir-donate

Happy holidays,
Joe

Ano Nymus

unread,
Jan 19, 2017, 5:32:37 AM1/19/17
to Smart Lencioni Image Resizer
Hello Joe Lencioni,

i love your image resizing tool, works fine. I do not know whether the tool is further developed...
Many discussions are unfortunately already some years old.
I
n order to achieve good results for responsive websites, I would be very glad about the option of percent resize.
Is there any way to realize this? that would be great...


I would be very pleased about a short feedback :-)


Thank you for your efforts
Arno Nymeier
Reply all
Reply to author
Forward
0 new messages