Page 1 of 1

Coming soon - Enhancements to CGSmartImage

Posted: Sun Jun 19, 2011 11:04 pm
by calguy1000
CGSmartImage your favorite, convenient image processing toolkit is getting some more improvements. You'll be able to pass the images that your editors upload through CGSmartImage automagically.

I am writing a new block plugin called {cgsi_convert} that will automatically throw any <img> tags between it's start and ending tags through CGSmartImage. This will allow you to automagically scale, rotate, and embed images that your users upload to the site and embed into your content.

i.e:

Code: Select all

{cgsi_convert filter_greyscale=1 filter_watermark=1}{content}{/cgsi_convert} 
This will (for all images specified in the content area)
- automatically rotate jpeg images to the proper orientation (according to EXIF data),
- clip/scale the images to the proper size (as specified in the img tag) so that the scaling isn't done on the browser
- convert to greyscale,
- apply your watermark settings
- cache the output so that this magic doesn't have to happen again for the same image.
- embed the image data into the page (if the browser allows).

I'm also playing with some other options like:
max_width = xxxx
max_height = xxxx
(which would automatically ensure that NONE OF the images that are specified exceed the width and height specified.

I should be releasing the new version of CGExtensions in the next few days, so I thought I'd keep you informed.

Re: Coming soon - Enhancements to CGSmartImage

Posted: Mon Jun 20, 2011 8:03 am
by square
I'm happy to see the max_width and max_height stuff :)

Will it be implemented to the {CGSmartImage} parameter ?

Re: Coming soon - Enhancements to CGSmartImage

Posted: Tue Jun 21, 2011 10:13 pm
by micahgodbolt
Oh yeah! Excited to see this feature. I like the idea of using the img height/width to resize the photo. Much better than just having to pick a value and hope it works for the user's content.

Keep up the good work. cgsmartimage is becoming one of those go-to modules for me on almost every site.