Try our conversational search powered by Generative AI!

mg
mg
Nov 24, 2008
  12128
(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
Upgrade Optimizely CMS From v11 to v12

Why Upgrade? There are many improvements implemented in version 12, but most importantly is that the whole framework is migrated from .Net Framewor...

MilosR | May 13, 2024

Configured Commerce - Infrastructure Updates Ahoy!

I'm very happy to share an important milestone - we no longer have any customers in our legacy v1 environment!  This means that the Configured...

John McCarroll | May 10, 2024

A day in the life of an Optimizely Developer - Enabling Opti ID within your application

Hello and welcome to another instalment of A Day In The Life Of An Optimizely developer, in this blog post I will provide details on Optimizely's...

Graham Carr | May 9, 2024

How to add a custom property in Optimizely Graph

In the Optimizely CMS content can be synchronized to the Optimizely Graph service for it then to be exposed by the GraphQL API. In some cases, you...

Ynze | May 9, 2024 | Syndicated blog