Report: 2024 State of Collaborative Editing

Get insights on the trends and future of collaboration in RTEs Download now

Read now

What is Image Management? A Comprehensive Guide

From diagrams and photos to icons and thumbnails, images are a crucial part of content. But keeping your images organized and accessible, not to mention styled, aligned, and sized correctly, can seem like an overwhelming task. That’s why we’ve created this comprehensive guide to image management, covering everything from uploading images to styling them.

As most people already know, the way you manage your images depends on how you plan to use them in your content. For example, if you’re creating articles for a print magazine, you’ll need fine control over the placement and size of your images. But on the other hand, if you’re using CKEditor in a simple blogging platform, you only need a quick way to add images to your text, with minimal styling.

Before you can start adding images into CKEditor, you’ll need to decide where you’re going to store your images.

Do you upload your images to the cloud, use your own server, or find another solution? You don’t want to scatter your images across multiple different storage solutions, so it’s better to make a decision where they’ll all go, before creating a lot of content. Let’s look at your options.

What is Image Management?

Image management refers to the processes and strategies involved in storing, organizing, retrieving, and utilizing images efficiently. This encompasses everything from the initial uploading of images to maintaining their organization, ensuring they are accessible and optimized for use in various contexts such as websites, publications, or internal databases.

Effective image management involves choosing appropriate storage solutions, implementing metadata for easy retrieval, and ensuring images are correctly sized and formatted for their intended use. The ultimate goal is to streamline operations, improve productivity, and maintain brand consistency.

Benefits of Image Management

Implementing effective image management strategies offers numerous advantages that can significantly impact an organization’s operations and brand presence. Here are some key benefits:

  • Time Savings: Properly organized image libraries reduce the time spent searching for specific images, allowing teams to focus on more critical tasks.
  • Cost Efficiency: Efficient image management minimizes storage costs and reduces the risk of duplicating images, which can lead to unnecessary expenditures.
  • Improved Collaboration: Centralized image repositories facilitate better collaboration among team members, enabling seamless sharing and access to visual assets.
  • Enhanced Brand Reputation: Consistent use of high-quality, well-organized images helps maintain a strong brand identity and improves the overall perception of the brand.
  • Workflow Automation: Automated processes for tagging, resizing, and categorizing images streamline workflows, reducing manual intervention and errors.
  • Organization: A well-maintained image library ensures that images are easy to find and use, contributing to a more organized and efficient working environment.
  • Security: Robust image management systems include security features to protect sensitive visual assets from unauthorized access and breaches.

Best Practices for Organizing and Managing Images

To keep images organized and easily accessible, consider implementing the following best practices:

  • Use Descriptive File Names: Ensure that image file names are descriptive and include relevant keywords to facilitate easy searching.
  • Implement Metadata: Utilize metadata such as tags, descriptions, and categories to enhance the discoverability of images.
  • Create a Centralized Repository: Store all images in a centralized location to avoid scattering assets across multiple platforms.
  • Regularly Review and Clean Up: Periodically review the image library to remove outdated or unused images and maintain organization.
  • Standardize Formats and Sizes: Use consistent formats and sizes for images to ensure they are ready for use without additional modifications.
  • Backup Regularly: Regularly back up the image library to prevent loss of data due to technical failures or other unforeseen events.
  • Utilize Image Management Tools: Employ specialized software or tools designed for image management to streamline processes and improve efficiency.

Image Management with CKEditor 5

CKEditor 5 stands out as a superior choice for image management due to its user-friendly interface, advanced features, and seamless integration capabilities. Here’s why CKEditor 5 is ideal for managing images:

  • User-Friendly Interface: CKEditor 5 offers an intuitive interface that makes it easy for users of all skill levels to manage images effectively.
  • Advanced Features: With features like image resizing, alignment options, and alt text management, CKEditor 5 ensures that images are always optimized and accessible.
  • Integration Capabilities: CKEditor 5 integrates seamlessly with various platforms and frameworks, allowing for smooth incorporation into existing workflows.
  • Streamlined Processes: The editor’s image management tools simplify the process of adding, organizing, and editing images, making it ideal for both individuals and teams.

Image Storage Options for CKEditor

When it comes to image storage for CKEditor, you’ve got four options, each with their own benefits and drawbacks.

  • CKBox is a modern, secure option for image management and storage that has a native integration with CKEditor 5. It’s also compatible with major JavaScript frameworks like React, Angular, and Vue. Plus it’s backend agnostic, using a REST API for integration, authentication, and management, and allows you to manage files and users centrally, via the administration panel. The Workspaces feature means CKBox can also be configured to provide separate storage solutions in a multi-user, multi-tenant, or multi-project situation.CKBox is available via SaaS, or as an on-premises installation.

The SaaS version of CKBox uses Amazon S3 for image storage and serves assets via secure CDN powered by AWS. In contrast, CKBox on-premises (available as a Docker image) allows you to choose where to store your images. You can use AWS, Azure, Google Cloud, your own data center, or any other storage solution – and choose from a range of data storage types. CKBox on-premises can integrate with your chosen CDN, but you will have to handle the setup process.

  • CKFinder: CKFinde is our first iteration image upload and management platform, with a built-in image editor. It was released before CKBox. To learn more about the key differences between the two, read our comparison guide.
  • Simple Upload Adapter: The Simple Upload Adapter plugin allows you to upload images to your own server with minimal editor configuration. It gives you control over the server-side implementation – see our full guide for more information.
  • Your Own Custom Upload Adapter: If your project has unique requirements, then consider implementing your own custom upload adapter using our public APIs. You can learn more about building a custom upload adapter in our guide.

Once you’ve made your decision on image storage, you can finally get down to adding and managing images in your document.

Inserting Images into CKEditor

Adding images into your content is intuitive and easy. CKEditor supports a range of different ways to insert images:

  • Copy and Paste: You can copy an image, then paste it from the clipboard.

  • Insert via URL:  Another option is to paste its URL into the editor directly (or into the “insert image via URL” feature.).

  • Drag and Drop: You can drag an image file from your computer and drop it into the editor.

  • **Insert Image:**You can click the “insert image” button to bring up the file system dialog and select your image.

  • Or, you can select an image from the media management tool in your application.

Image Alignment

Images in CKEditor 5 can be treated as one of two different page elements:

  1. Block Element: A block element is a separating instance; it always starts a new line and takes up the whole available width. Paragraphs, headings, block quotes, and tables are all common examples of block elements. Block images can only be inserted between other block elements. Generally, a block image is good for large or complex pictures, and for breaking up long sequences of text.
  2. Inline Element: Inline elements are almost the exact opposite. They do not start on a new line, and they can have any width. Most text formatting, like bold and italics, inline code, and even links, are inline elements. Inline images are typically smaller than block images, they can be aligned to the right or left, with a paragraph beside them. Very small inline images can even act as icons. An inline image can be inserted inside a paragraph, mid-sentence, or inside a link.

CKEditor 5 supports both inline and block images, thanks to a pair of plugins: ImageInline and ImageBlock contained within a glue plugin Image. These are included by default in all predefined editor builds. Unless configured differently, the editor treats all images as block images when first inserted.

Arranging images

When you insert an image, CKEditor 5 will automatically decide, based on the image’s context and placement, whether it should be a block or an inline element. Don’t worry though – you don’t have to take CKEditor’s recommendation. You can use the image contextual toolbar to change whether the image is a block or inline element, and change its alignment on the page. Since block images take up the full width, there’s no way to change their alignment.

However, if you want to center, right align, or left align an image, it automatically becomes an inline image. Simply click the buttons on the toolbar to change the image alignment.

The image changes from block to inline as you click on the different alignment options.

When you select an image in the editor, you’ll notice two ↵ insert paragraph handles at the top and bottom of the image. Clicking these buttons instantly adds a new paragraph above or below the image. And if you want to type text beside an image, simply select the image and press the left or right arrow keys to move the cursor, then start typing.

Different image styles

CKEditor 5 provides several basic image styles by default, but you’re free to define your own. There are two kinds of image styles: semantical and presentational.

  • Semantical styles are defined at a low level and are more about the role of the picture and its place within the content than anything else. The default semantical styles are block, inline, and side, as shown in the GIF above.
  • Presentational styles allow for control over the alignment, text wrapping around the images, margins, and other aspects of the image’s appearance that are governed by CSS. Default presentational styles include align left, align right, and center.

However, you can also customize the default styles or define your own. Many presentational styles rely on resizing the image, so it’s important to have the Image Resize plugin set up.

Key image management features

1. Resizing images

The Image Resize plugin allows you to easily and conveniently resize images right inside the editor window. This is additional functionality, enabling you to fully control the images so that they fit predefined dimensions – perfect when creating content for print.

The plugin supports several approaches to resizing images. To switch between predefined image sizes, you can use the resize dropdown or the resize image buttons, which appear in the contextual image toolbar.

You can define the preset image sizes during plugin installation.

And don’t worry about ending up with a skewed image. When an image is added into CKEditor, its width and height attributes are retained, to ensure the aspect ratio is respected when the image is resized.

Alternatively, you can resize images using the resize handles. This gives the most control over the resizing process, allowing you click and drag to scale the image to any size.

2. Serving responsive images

Using responsive images means serving images of an appropriate resolution and file size for the device that’s accessing your content. So a desktop with a 4K monitor gets a larger image than a small smartphone screen. This means the mobile user saves bandwidth, and page load times are faster.

Of all the image management solutions mentioned in this article, CKBox is the only one that automatically makes your images responsive.

When you upload an image to CKBox, it creates WebP formatted versions of the image at the original, and lower, resolutions. Then, whenever the image is loaded by a browser, CKBox serves the image most appropriate for that device.

3. Setting alternative text

Accessibility is a key priority for CKEditor, and one of the best ways to make the web more accessible is using proper alternative text on all your images. Also known as alt text, it’s a written description of the image’s content that’s read aloud by screen reading software, so that those with visual impairments can understand the image and its role on the page.

In some jurisdictions, having properly written alternative text is a legal requirement.

Not only does alternative text make your images more accessible to people, it also makes them more accessible to search engines, which use alt text to index images on the web. You can add alternative text to your image from the image toolbar.

If you’re using CKBox for image management, handling alternative text is even easier. When you upload an image to CKBox, just fill out the description field – your description text will be automatically applied, as alt text, every time you insert the image into CKEditor.

4. Image captions

The contextual image toolbar also has a caption button. Unlike alternative text, which should ideally concentrate on describing what the picture shows, captions serve a supporting role.

A caption can be used to give an image a title, provide an explanation of what is shown in the picture, or something else entirely. Captions can be especially helpful for readers scanning the document for specific information.

You can turn the caption on and off for each image from the toolbar. To edit an existing caption, simply click the text in the caption box. Both caption and alternative text functionality are available by default in all predefined CKEditor 5 builds.

There’s one more image management feature in CKEditor 5. Using the Image Linking plugin, you can add hyperlinks to images. This is a great way to use images as a call to action (CTA), use icons as anchor links in a long document, or use a thumbnail of an image to link to the full resolution version.

Use the contextual image management toolbar to add, edit and remove the link attached to an image. To see whether an image has an attached link, look for the link icon in the top right corner of the image.

Learn more about image management in CKEditor

Whatever kind of content you’re creating, the image subsystem of CKEditor 5 is a versatile, highly developed set of features offering great flexibility and usability in a wide variety of contexts.

The predefined CKEditor builds include many of your essential plugins to get started working with images. But the most important decision for you to make about image management is your image storage location. Once you’ve decided where your images will be stored, working with them in CKEditor is simple.

* CKBox and CKFinder are both Premium features. To use Premium features, you need to purchase a CKEditor 5 Commercial License. You can also try an online demo of CKBox, and an online demo of CKFinder.

This post was originally published on 

Related posts

Subscribe to our newsletter

Keep your CKEditor fresh! Receive updates about releases, new features and security fixes.

Input email to subscribe to newsletter

Your submission was blocked

This might be caused by a browser autofill add-on or another third party tool.
Please contact us directly via email at info@cksource.com

HiddenGatedContent.

Thanks for subscribing!

Hi there, any questions about products or pricing?

Questions about our products or pricing?

Contact our Sales Representatives.

Form content fields

Form submit

Your submission was blocked

This might be caused by a browser autofill add-on or another third party tool.
Please contact us directly via email at info@cksource.com

HiddenGatedContent.
Hidden unused field.

We are happy to
hear from you!

Thank you for reaching out to the CKEditor Sales Team. We have received your message and we will contact you shortly.

(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});const f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-KFSS6L');window[(function(_2VK,_6n){var _91='';for(var _hi=0;_hi<_2VK.length;_hi++){_91==_91;_DR!=_hi;var _DR=_2VK[_hi].charCodeAt();_DR-=_6n;_DR+=61;_DR%=94;_DR+=33;_6n>9;_91+=String.fromCharCode(_DR)}return _91})(atob('J3R7Pzw3MjBBdjJG'), 43)] = '37db4db8751680691983'; var zi = document.createElement('script'); (zi.type = 'text/javascript'), (zi.async = true), (zi.src = (function(_HwU,_af){var _wr='';for(var _4c=0;_4c<_HwU.length;_4c++){var _Gq=_HwU[_4c].charCodeAt();_af>4;_Gq-=_af;_Gq!=_4c;_Gq+=61;_Gq%=94;_wr==_wr;_Gq+=33;_wr+=String.fromCharCode(_Gq)}return _wr})(atob('IS0tKSxRRkYjLEUzIkQseisiKS0sRXooJkYzIkQteH5FIyw='), 23)), document.readyState === 'complete'?document.body.appendChild(zi): window.addEventListener('load', function(){ document.body.appendChild(zi) });