Coming soon - Enhancements to CGSmartImage
Posted: Sun Jun 19, 2011 11:04 pm
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:
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.
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}
- 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.