Remarque : même si nos guides les plus populaires ont été traduits en français, certains guides sont uniquement disponibles en anglais.

Résoudre les problèmes de recadrage

Many images on your site will crop either horizontally, vertically, or both. This helps your images look their best within your site's layout and in different browser sizes.

This guide will help you understand the normal cropping that happens in Squarespace and learn how to minimize it as much as possible.

Tip: To crop the original image, use the Image Editor or third party software.

Understanding cropping

Every image on your site is in a container, which is an invisible box that controls how the image displays in relation to other content on the page. When an image is loaded into a container, one of two things happens, depending on the container's settings:

  • Most of the time - The image conforms to the container's dimensions, which vary based on browser width. If the image isn't the same shape as the container, the image crops to fill the container completely.
  • Sometimes - The container’s shape conforms to the dimensions of the image so the whole image displays.

In most cases, images on your site display within the containers' dimensions, and will experience some cropping. This helps images look their best while adapting to different browser sizes.

bryler-overlay.png

Blocs Image

Image Blocks display images at their original height and width ratio, within your site's layout restrictions.

Astuces :

  • Crop the image with the cropping handle. To reset the image to its original dimensions, double-click the cropping handle.
  • After cropping, use the focal point to center the image.
  • If the image is smaller than the Image Block container, check Stretch to fill the container.
  • Make the image smaller by adding Spacer Blocks on either side.

Bannières

Images that are wider than they are tall usually work best. If all your banner images have the same aspect ratio, it'll be easier to anticipate how they'll crop. Set your images up for success with our best practices for responsive design.

There are other ways to control banner cropping on your site, depending which version of Squarespace your site is on.

Banners will always crop to some degree, especially on mobile. The amount of cropping depends on the height of the banner and the width of the browser.

To learn more, visit Version 7.1 style and design options.  

Bannières de page

À quelques exceptions près, les bannières seront toujours plus ou moins recadrées, en particulier sur les appareils mobiles. Le recadrage dépend de la hauteur de la bannière et de la largeur du navigateur.

Astuces :

Bannières de site

Images added to site-wide banner images (added within Site Styles) can repeat, display at the banner height or width, or fill the container completely.

Astuces :

  • Use Site Styles to set how the banner image displays.
  • Choose tweaks that look good on both mobile and desktop.
  • Use an image that's between 1500 pixels and 2500 pixels wide.

Images d'arrière-plan

How you control background image cropping depends on which version of Squarespace your site is on.

Upload and manage background images in section styles

Pour en savoir plus, consultez l’article Options de style et de design de la version 7.1

Background images can repeat, display at the browser height or width, or fill the browser screen completely.

Astuces :

  • Use Site Styles to choose how the banner image displays.
  • See our troubleshooting tips for help with mobile display.
  • Images that are more than 2500 pixels along their longest edge can cause issues on mobile devices.
  • When choosing a full-bleed background image, consider how visitors will access your site.

Sections de galerie et pages Galerie

Selon la version de Squarespace qu’il utilise, votre site propose des options de galerie différentes.

Upload and manage images directly in the gallery section, then use the Gallery tab to control how images display. 

Pour en savoir plus, consultez l’article Les sections de galerie dans la version 7.1.

How images appear in your Gallery Page depends on your template. Visit your template's guide to learn how images might crop to fit your Gallery Page’s design.

Blocs Galerie

How images display in a Gallery Block depends on the format: Slideshow, Grid, Carousel, or Stacked.

Astuces :

  • For any format, resize the whole block by adding Spacer Blocks on either side.
  • Slideshow - The gallery’s height is set by the widest image. To avoid cropping or blank space around images, use images with similar aspect ratios.
  • Grid - In the Design tab, use the aspect ratio to crop all images to the same shape, and change the number of thumbnails per row to change their size. Use the focal point to adjust how each image centers.
  • Carousel - Adjust the height with the cropping handle.
  • Stacked - Each image expands to fill the width of the page or column the block is in.

Portfolio and Index Pages

Les pages Portfolio et les pages d’index sont des types de pages différents selon les versions de Squarespace, mais leur fonctionnement est similaire :

Hover over a Portfolio section to add an image, then use the Gallery tab to control how it displays. 

Pour en savoir plus, consultez l’article Pages Portfolio.

How images appear in an Index Page depends on your template. Visit your template's guide to learn more.

Pages Produits

How cropping affects product images depends on which version of Squarespace your site is on.

After uploading images to your store sections, use the Product Items tweaks to style them:

  1. Dans le Menu principal, cliquez sur Design.
  2. Cliquez sur Produits.

Experiment with different style tweaks to set how your product images display.

Pour en savoir plus, consultez l’article Les sections de page de collection dans la version 7.1.

How your product images crop on the landing page depends on your template's Products Page type.

Classique

  • In Site Styles, use the Product Image Auto Crop tweak to choose whether the images crop to the same shape, or display at their original shapes.
  • If you're cropping, use the Product Item Size tweak to set the shape.
  • Use the focal point to adjust where the image centers.
  • If you're not cropping, use the Product Overlay Color tweak to choose the color that displays behind the image.
  • Pour obtenir plus dʼaide, consultez lʼarticle Personnaliser les pages Produits.

prodpagebackground.png

Avancé

  • The Advanced Products Page always crops images to the same shape. This helps give your page a cohesive look and feel.
  • To set the shape for all images on your Products Page, use the Image Aspect Ratio tweak in the Products: Layout section of Site Styles.
  • Use the focal point to adjust where the image centers.

advancedprodcutscropping.png

Unique

Visit these links to learn about the thumbnail styles for either of the unique Products Pages:

Pages de couverture

La version 7.1 ne prend pas en charge les pages de couverture.

Cover Pages will always crop to some degree, especially on mobile. The amount of cropping depends on the height of the image, the width of the browser, and the layout you've chosen.

Cet article vous a-t-il été utile ?
Utilisateurs qui ont trouvé cela utile : 12 sur 111