ES Before & After Compare documentation Image Sizing & Responsive Display | ES Before After
The module separates the proportions of the comparison area from the way the images fit within it. These controls are in Appearance.
Display aspect ratio
Choose Original before-image ratio to base the stage proportions on the natural width and height of the Before image. Alternatively, choose a fixed proportion: Ultra-wide (21:9), Widescreen (16:9), Standard (4:3), Square (1:1) or Portrait (3:4).
Original before-image ratio uses the Before image, not an average of both images. Closely matched source dimensions give the cleanest reveal.
Image fitting and alignment
- Fill area (crop when needed): fills the comparison stage, possibly trimming the image edges.
- Show full image (no cropping): keeps complete images visible, but may leave unused space when aspect ratios differ.
- Image alignment: choose Center, Left, Right, Top or Bottom to set the shared focal point of both images.
Maximum display width

The Maximum display width menu offers:
- Full available width: fit the containing column or template area.
- Original image width (no upscaling): use the smaller natural pixel width of the two source images as the maximum width, so neither image is deliberately enlarged.
- Custom width (px): reveal Custom maximum width (px) and enter a value from 240 to 4096.
- Presets: 480, 640, 800, 960 and 1200 px.
For example, if the Before image is 500 px wide and the After image is 800 px wide, Original image width limits the comparison to 500 px.
Behavior on narrow screens
The comparison is responsive: fixed and custom maximum widths remain upper limits, and the module reduces its rendered width to fit the available container on smaller screens. A custom 900 px maximum does not force a 900 px wide slider on a 390 px phone.
For Top / bottom comparisons on touchscreens, scroll gestures over the image can continue scrolling the page. Start a vertical comparison drag from the center handle. In Left / right mode, drag horizontally to adjust the reveal.
Recommended starting points
- For matching square images: Square (1:1) and Fill area.
- For differently proportioned images: try Show full image and check the remaining empty space.
- For small source images: try Original image width to avoid unnecessary enlargement.