Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

Edit images: rotate, crop, and set a focal point

How to rotate, crop, and set a focal point on images in admin. The original is never overwritten, and you can always reset it.

Reading time: about 16 minutes
Store owner

You can edit an image directly in admin after you have uploaded it. You can rotate it, crop it, and tell the system where the subject is, so the most important part always stays in the image when the theme crops it. You cannot break anything along the way: the original always stays unchanged, and you can reset it with one click. If you delete an image, you get a few seconds to undo, and after that it is gone.

How to open image editing

Image editing is available in the image section on products, categories, pages, blog posts, landing pages, brands, campaigns, shipping methods, payment methods, and security profiles. If you create a new page, blog post, or landing page, you need to save it once before you can edit the images.

  1. Go to the product or page where the image is.
  2. Find the image section. On products, it is called Product images.
  3. Click the image itself. A window opens with the editing tools.

The window has two tabs: Crop and rotate, and Focal point.

The image section on a product with four image cards in a row, each with a thumbnail, an alt text field, the Share image and Feed image options, a drag handle, and a trash can, and below the cards a dashed drop zone
The image section looks the same throughout admin. Here it is on a product, where each card also has Feed image.

Rotate the image

Use Rotate left or Rotate right. The image turns a quarter turn at a time. It is exactly the same action you know from your phone or computer, and no quality is lost.

Note that a crop is removed when you rotate the image. This is intentional: a frame you drew on a landscape image does not make sense when the image suddenly stands upright. Rotate first, crop afterward.

The editing window with an image of a coffee bag lying on its side, and the two buttons Rotate left and Rotate right highlighted at the top of the window
A photo from a phone that ended up on its side. Two clicks on Rotate right, and it is upright again. The original file is untouched.

Crop the image

Drag a frame over the area you want to keep. You can drag the corners and the sides, and you can move the whole frame by dragging the middle.

The editing window on the Crop and rotate tab with a square crop frame drawn over the image of a coffee bag
Drag the frame over the area you want to keep. The area outside it is dimmed.

In the Format field, you can lock the frame to a specific aspect ratio:

  • Free gives you complete freedom.
  • Square (1:1) suits product cards and Instagram.
  • Landscape (4:3) and Widescreen (16:9) suit banners and front page images.
  • Portrait (3:4) suits clothing and other tall subjects.
The Format field in the editing window with Square (1:1) selected, next to the Rotate left and Rotate right buttons and the Remove cropping button
Format locks the frame to a fixed aspect ratio. Square suits product cards, and Widescreen (16:9) suits banners.

If you want to remove the crop again, click Remove cropping.

Focal point: keep the subject in the image

Themes often show images in fixed formats. A product card on the front page might be completely square, for example, even though your image is wide. Then part of the image has to be cut away, and until now it has always been cropped from the center.

That goes wrong when the subject is not in the center. If the model stands on the left side of the image, the head or half of the person ends up outside the square crop.

With a focal point, you tell the system where the subject is. Go to the Focal point tab and click the spot on the image that must always be included. A blue dot appears. When the theme then crops the image, it crops around your point instead of the center.

You can move the point by clicking a new spot, and remove it again with Remove focal point. Without a focal point, the image is cropped from the center, exactly as before.

The focal point is only used when the image has to be cropped to a fixed format. If the image is shown at its full height and width, for example on the product page, the point has no effect.

The Focal point tab with a wide image where the coffee cup is on the left side, and a blue dot placed in the middle of the cup
The subject is on the left. With the focal point on the cup, the image is cropped around the cup instead of from the center.

You cannot ruin your image

The original image is never overwritten. Rotation, crop, and focal point are saved as a few numbers alongside the image, and they are only applied when the image is shown in the store.

That is why you can always undo an edit. The Reset to original button at the bottom of the window removes rotation, crop, and focal point all at once, and the image is back the way it was when you uploaded it. This also works months later.

The Reset to original button at the bottom left of the editing window, to the left of Cancel and Save changes
Reset to original removes rotation, crop, and focal point all at once, even months later.

Images you have edited get a small badge called Edited in the image overview, so you can tell without opening them.

An image card with the Edited badge in the top left corner and a thumbnail cropped around the image's focal point
Edited images get a badge, so you can tell without opening them. The thumbnail shows the same crop the theme uses.

Images you have selected from the image archive have the From the archive badge. You edit them like any other image, and the change only applies here, not in the archive or the other places where the image is used.

Upload, order, and alt text

The image section works the same way throughout admin:

  • Upload: drag the images into the dashed field, or click anywhere in the field to choose them on your computer. Where there can be several images, you can drag many in at once. The images are uploaded right away, so you do not need to save the page first to write alt text. If the image is already in the image archive, click Select from image archive below the field and choose it there.
  • Order: where there can be several images, drag the handle with the six dots at the bottom left of the image card to move the image. The order is saved automatically. The first image is the main image.
  • Alt text: write a short description of what is in the image. It is saved when you save the page.
  • Delete: click the trash can at the bottom right of the image card. For a few seconds, the card stays in place with the text The image has been deleted and the Undo button, so you have time to undo a wrong click. After that, the card disappears, and the image is deleted. You do not need to save the page. If the image is from the archive, it is only removed here and stays in the archive.
The Product images section on a coffee product with four image cards, where the second card has a dashed border and shows a trash can icon, the text The image has been deleted, and the Undo button instead of the image
The second image has just been deleted. Click Undo within a few seconds, and it is back with its alt text and options.

You can upload PNG, JPEG, GIF, and WebP. SVG is not supported, because the images must be resizable to the sizes the theme uses.

The image section on a product with three image cards with the From the archive badge, below them the dashed drop zone with the text Drag images here, or click to select, and below that the Select from image archive button and the How to use the image archive link, highlighted with a red frame
Drag images into the field, or get them from the archive with Select from image archive. The images are uploaded right away, so you do not need to save the page first to write alt text.

If a photo from your phone is turned the wrong way

Phone cameras sometimes save an image in landscape even though it was taken in portrait, and add a note in the file about how it should be turned. Not all systems read that note, so a portrait image can end up lying on its side after upload.

If that happens, you can fix it in a moment: click the image and use Rotate left or Rotate right until it is the right way up. The rotation is saved without touching your original file, so you can always reset it again.

For developers

Crop and rotation are applied to the image itself, so the theme does not need to do anything. The scaling types fit, box, and pad all work on the edited image, and box automatically uses the focal point. pad does not crop, so the focal point has no effect there. The types are explained in Optimizing images for mobile.

If your theme crops the image itself with CSS in a box with a fixed format, you can get the focal point as a ready-made object-position:

<img src="<{$image->getSrc(800, 800, 'fit')}>" alt="<{$image->getDescription()|escape}>"
     style="object-fit: cover; object-position: <{$image->getFocalPoint()}>"/>

Use fit here and not box, because a box image is already cropped around the focal point. If no point is set, the value is empty, and the browser crops from the center.

There are also getFocalX() and getFocalY(), which return numbers between 0 and 1, or nothing if no point is set.

Through the REST API, the fields rotate, crop, and focal are available on each image, both when you fetch and when you save. Rotation is in degrees clockwise, crop is four numbers between 0 and 1 in the order x, y, width, and height, and the focal point is two numbers between 0 and 1. The crop is calculated on the rotated image, so the rotation is applied first.

Frequently asked questions

Do I delete my actual image when I crop it?

No. The image you uploaded stays unchanged. The crop is only applied when the image is shown, and you can always click Reset to original and get everything back.

Can I undo it if I accidentally delete an image?

Yes, but only while the card shows the Undo button. If you click Undo, the image is back with its alt text and the options you had chosen. If you save the page, leave it, or reload it before then, the image is deleted. Once the card has disappeared, the image is deleted along with its rotation, crop, and focal point, and you need to upload it again. If the image came from the image archive, you can select it from there again instead.

Do I need to do anything new, or does it work as before?

It works as before. You drag the images in just as you always have. The difference is that they are uploaded right away, that you can click an image if you want to edit it, and that you delete an image without saving the page, with a few seconds to undo.

Do I need to edit all my old images again?

No. Old images are untouched and look exactly as before. You can edit them if you want, but you do not have to.

How can I tell whether a colleague has already edited an image?

Edited images have a small badge called Edited in the image overview. If you open the image, you can see the rotation and the frame as they were saved.

Does it work the same way on products and categories?

Yes. The image section is the same everywhere. Products have some extra fields per image, such as a link to a variant, but upload, order, and editing work the same way.

Can I set a focal point on many images at once?

Not in admin, where it is set image by image. If you have many products, you can set the fields through the REST API, which has rotation, crop, and focal point on each image.

Does it take up more space on the server, and does it make the store slower?

No. Only a few numbers are stored in addition to the original. The edited version of the image is generated once and then reused, just like all other image sizes in the store.

How long does it take before customers see the change?

Right away. An edited image gets its own address, so customers get the new version and not an old one from the browser's cache.

Is the crop included in Google Shopping and when someone shares a link?

Yes. Feeds and share images use the same images as the store, so your rotation and crop are included the next time the feed is fetched.

Is alt text enough for SEO?

Alt text describes the image for search engines and screen readers, and it is also part of the image's address. It does not replace the product's own text and description. If a product image is missing alt text, you can see it in the Keyword Analysis in the SEO card on the product.