Bartosz Sekula
Jan 21, 2019
  5501
(9 votes)

Image property editor enhancements

In the next release of CMS UI (version 11.15.0), we will be releasing a few more Image Property enhancements.

Based on a very positive feedback after the last improvements in that area that addressed only the Media Selector we decided to continue and this time try to improve the Editor itself.

The new editor looks like this:

editor.png

As you can see we can now see a bigger thumbnail (150x90) that is displayed together with the image filename.

User interaction remains the same, editor either clicks on the editor which shows the Media Selector that I mentioned earlier or drags & drops an image from the Assets Pane.

choosing_image.gif

Another useful feature is the ability to drag & drop a local image directly onto the property editor:

upload_local_image.gif

If the image file is big or the internet connection is slow you will see a progress bar together with a preview:

uploading_progress_bar.gif

The new editor is now turned on by default for all properties with UIHint("Image") and of type ContentReference or Url

[UIHint(UIHint.Image)]
public virtual ContentReference Image1 { get; set; }

[UIHint(UIHint.Image)]
public virtual Url Image2 { get; set; }
Jan 21, 2019

Comments

valdis
valdis Jan 23, 2019 11:14 AM

nice

Eric Petersson
Eric Petersson Jan 23, 2019 12:09 PM

very nice

Antti Alasvuo
Antti Alasvuo Jan 24, 2019 05:27 AM

Very nice feature and I believe editors will appreciate it.

Henrik Fransas
Henrik Fransas Jan 24, 2019 06:24 AM

Nice, fun to se some more improvements to the GUI!

Patrik
Patrik Jan 24, 2019 07:48 AM

Thumbs up!

Jan 25, 2019 09:01 AM

A nice start but what I'd really like to see in the API is some native out of the box image processing and manipulation features.

In a modern responsive website you always have to scale images and so far we have

  • ImageResizer - Has issues without paid version for caching and PNG compression
  • ImageProcessor - Currently IMO the best version for resizing

https://world.episerver.com/blogs/vincent-baaij/dates/2019/1/episerver-and-imageprocessor-new-crop-addition/ has added cropping support for images and hopefully is adding ratio support but I really think in the modern web stack that should be a CMS feature baked in rather than needing 3rd party solutions.

ImageProcessor works great but it would be nice for such a core part of the web development process to not need 3rd parties and I'm pretty sure EVERYONE is doing things like using image resizers and picture elements so when it's most people needing to have a package it should be part of core.

Toke Frostholm
Toke Frostholm Jan 28, 2019 08:02 AM

Nice feature, but I have to agree with Scoot Reed. 

Bartosz Sekula
Bartosz Sekula Jan 28, 2019 09:32 AM

Scott, you made a very good point.

However the enhancements I described are only relevant to the Edit Mode where we do not need to care so much about compression, resizing etc. we just wanted to improve the way editors can work with images.

Valina Eckley
Valina Eckley Feb 8, 2019 04:11 PM

This is awesome, and will be great for most of our authors.


However, we have a select groups of web authors whome we can't allow to be able to upload their own images, otherwise they will really break their pages. 

In the old version they were able to select from a list of approved images, and this works great for the admins to control. 

Is there way I can turn off the drag and drop feature for certain images?  Just allow them to select images again? 

Valina Eckley
Valina Eckley Feb 8, 2019 04:30 PM

I guess I could make it UIHint.MediaFile...

I woudn't put it against some of these users trying to link an PDF as an image.   

Henrik Fransas
Henrik Fransas Mar 7, 2019 04:41 PM

This is working great.

A small feature request though, could you make it display svg files also, now they look like a broken image

Minesh Shah (Netcel)
Minesh Shah (Netcel) Mar 28, 2019 05:11 PM

Placing an SVG in here is causing an 500 error can we revert back to the old Image Property Editor ? 

A bug was raised but status is set to closed will not fix 

John Ligtenberg
John Ligtenberg Apr 9, 2019 09:36 AM

I've also run into the problem with the SVG files, I hope this will be fixed.

Linus Ekström
Linus Ekström May 24, 2019 02:06 PM

Thanks for fixing this Bartosz!

Luc Gosso (MVP)
Luc Gosso (MVP) Sep 23, 2019 12:41 PM

Hi there Bart! How do we config the allowedExtenstions? for the direct upload? seems to be possible but how? default is set to: 

0: "svg"
1: "gif"
2: "jpg"
3: "jpeg"
4: "jpe"
5: "ico"
6: "bmp"
7: "png"

Thx

Please login to comment.
Latest blogs
Opti ID overview

Opti ID allows you to log in once and switch between Optimizely products using Okta, Entra ID, or a local account. You can also manage all your use...

K Khan | Jul 26, 2024

Getting Started with Optimizely SaaS using Next.js Starter App - Extend a component - Part 3

This is the final part of our Optimizely SaaS CMS proof-of-concept (POC) blog series. In this post, we'll dive into extending a component within th...

Raghavendra Murthy | Jul 23, 2024 | Syndicated blog

Optimizely Graph – Faceting with Geta Categories

Overview As Optimizely Graph (and Content Cloud SaaS) makes its global debut, it is known that there are going to be some bugs and quirks. One of t...

Eric Markson | Jul 22, 2024 | Syndicated blog

Integration Bynder (DAM) with Optimizely

Bynder is a comprehensive digital asset management (DAM) platform that enables businesses to efficiently manage, store, organize, and share their...

Sanjay Kumar | Jul 22, 2024

Frontend Hosting for SaaS CMS Solutions

Introduction Now that CMS SaaS Core has gone into general availability, it is a good time to start discussing where to host the head. SaaS Core is...

Minesh Shah (Netcel) | Jul 20, 2024

Optimizely London Dev Meetup 11th July 2024

On 11th July 2024 in London Niteco and Netcel along with Optimizely ran the London Developer meetup. There was an great agenda of talks that we put...

Scott Reed | Jul 19, 2024