Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

mg
mg
Nov 24, 2008
  12117
(1 votes)

Tweaking the Image Editor

Now that we've been running the CMS 5 R2 for a while, I would like to hint about a small configuration option available for the Image Editor which comes with R2.

With the new image editor we've included functions to crop and resize images. By using preset formats it will be easier for editors to resize and crop to most commonly used sizes on the web site. A little nice thing you can do is to configure the preset sizes very easily by modifying the imageEditor section in web.config.

Example of preset sizes in web.config. Note: Each preset can have a name as well. If name is left out the preset name will be "width x height".

<sizePresets>
       <preset name="4:3 320 * 240" width="320" height="240" />
       <preset name="4:3 800 * 600" width="800" height="600" />
       <preset name="4:3 1280 * 960" width="1280" height="960" />
       <preset name="16:9 320 * 180" width="320" height="180" />
       <preset name="16:9 800 * 450" width="800" height="450" />
       <preset name="16:9 1280 * 720" width="1280" height="720" />
</sizePresets>

Oh, you can also set (web.config) the size of the window that is hosting the Image editor, have a look at these settings: windowWidth="900" windowHeight="600" in the ImageEditor section.

Another good thing with the Image Editor is that you can separate it to another server in in scenarios where you don't want image operations to burden the live site. But that is another story. Read more about that in this Tech note....

Nov 24, 2008

Comments

Simon Simonsson
Simon Simonsson Sep 21, 2010 10:32 AM

Or you could just go ahead and buy ImageVault! :) ... but nice tweaks anyway, could come in handy, for projects without ImageVault!

Apr 17, 2017 03:34 PM

Please login to comment.
Latest blogs
Solving the mystery of high memory usage

Sometimes, my work is easy, the problem could be resolved with one look (when I’m lucky enough to look at where it needs to be looked, just like th...

Quan Mai | Apr 22, 2024 | Syndicated blog

Search & Navigation reporting improvements

From version 16.1.0 there are some updates on the statistics pages: Add pagination to search phrase list Allows choosing a custom date range to get...

Phong | Apr 22, 2024

Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog