# image-compare icon

Image compare. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/image-compare

- Category: Photo & image
- Use it for: before after, compare images, image diff, before and after, compare photos
- Tags: compare, before after, before and after, comparison, slider, split view, image diff, photo, edit, preview
- Family: image, image-alert, image-arrow-down, image-arrow-right, image-arrow-up, image-check, image-gear, image-heart, image-info, image-link, image-lock, image-off, image-pencil, image-play, image-plus, image-scan, image-search, image-shield, image-sparkle, image-square, image-square-plus, image-star, image-swap, image-sync, image-tag, image-upscale, image-x, images, images-arrow-down, images-clock, images-plus, images-user, images-x, videos
- Component name: ImageCompareIcon
- Added: 2026-11-06
- Since: version 0.4.0
- npm: `import { ImageCompareIcon } from '@gentleface/react';` (@gentleface/react 0.6.0)

## Alternatives

- `compare`: compare items or versions in general (compare)

## Don't confuse with

- `columns`: a two-column layout

## Also fits

- compare: before and after images

## Files

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too.

- line-round: https://gentleface.com/svg/line-round/16/image-compare.svg · PNG https://gentleface.com/png/line-round/16/image-compare.png · https://gentleface.com/png/line-round/32/image-compare.png · https://gentleface.com/png/line-round/48/image-compare.png
- line-soft: https://gentleface.com/svg/line-soft/16/image-compare.svg · PNG https://gentleface.com/png/line-soft/16/image-compare.png · https://gentleface.com/png/line-soft/32/image-compare.png · https://gentleface.com/png/line-soft/48/image-compare.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/image-compare.svg · PNG https://gentleface.com/png/line-sharp/16/image-compare.png · https://gentleface.com/png/line-sharp/32/image-compare.png · https://gentleface.com/png/line-sharp/48/image-compare.png
- solid-round: https://gentleface.com/svg/solid-round/16/image-compare.svg · PNG https://gentleface.com/png/solid-round/16/image-compare.png · https://gentleface.com/png/solid-round/32/image-compare.png · https://gentleface.com/png/solid-round/48/image-compare.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/image-compare.svg · PNG https://gentleface.com/png/solid-soft/16/image-compare.png · https://gentleface.com/png/solid-soft/32/image-compare.png · https://gentleface.com/png/solid-soft/48/image-compare.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/image-compare.svg · PNG https://gentleface.com/png/solid-sharp/16/image-compare.png · https://gentleface.com/png/solid-sharp/32/image-compare.png · https://gentleface.com/png/solid-sharp/48/image-compare.png

The SVG of every style: https://gentleface.com/icons/image-compare.json (`svg`).

## Animated

`image-compare-slide`: The divider is dragged right and the filled before half takes over the picture, the sun turning into a hole as it passes. It is dragged back across to the left edge, then returns to the middle.

File: https://gentleface.com/motion/image-compare-slide.svg (line-round, 16 px). Native SVG animation that loops by itself. To play it once, run 0.3 s to 2.9 s. Patterns: https://gentleface.com/animated-icons.md

```svg
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.001" stroke-linecap="round" stroke-linejoin="round"><clipPath id="w9gCmpL"><rect x="-1" y="0" width="9" height="16"><animate attributeName="width" dur="3.2s" repeatCount="indefinite" keyTimes="0;0.094;0.297;0.391;0.641;0.719;0.891;1" values="9;9;14;14;5;5;9;9" calcMode="spline" keySplines="0 0 1 1;.6 0 .25 1;0 0 1 1;.6 0 .25 1;0 0 1 1;.6 0 .25 1;0 0 1 1"/></rect></clipPath><clipPath id="w9gCmpR"><rect x="8" y="0" width="16" height="16"><animate attributeName="x" dur="3.2s" repeatCount="indefinite" keyTimes="0;0.094;0.297;0.391;0.641;0.719;0.891;1" values="8;8;13;13;4;4;8;8" calcMode="spline" keySplines="0 0 1 1;.6 0 .25 1;0 0 1 1;.6 0 .25 1;0 0 1 1;.6 0 .25 1;0 0 1 1"/></rect></clipPath><mask id="w9gCmpM" maskUnits="userSpaceOnUse" x="-2" y="-2" width="20" height="20"><rect x="-2" y="-2" width="20" height="20" fill="#fff" stroke="none"/><path d="M-0.5 12.5L5.5 6.5L13 14" stroke="#000" fill="none" stroke-linejoin="miter" stroke-linecap="butt"/><path d="M10 6C10 5.448 10.448 5 11 5C11.552 5 12 5.448 12 6C12 6.552 11.552 7 11 7C10.448 7 10 6.552 10 6Z" fill="#000" stroke="none"/></mask><mask id="w9gCmpW" maskUnits="userSpaceOnUse" x="-2" y="-2" width="20" height="20"><rect x="-2" y="-2" width="20" height="20" fill="#fff" stroke="none"/><path d="M-0.5 12.5L5.5 6.5" stroke="#000" fill="none" stroke-linecap="butt"/></mask><g mask="url(#w9gCmpW)"><path d="M8 3.5L13 3.5C13.828 3.5 14.5 4.172 14.5 5L14.5 11C14.5 11.828 13.828 12.5 13 12.5L3 12.5C2.172 12.5 1.5 11.828 1.5 11L1.5 5C1.5 4.172 2.172 3.5 3 3.5L8 3.5Z"></path></g><g clip-path="url(#w9gCmpL)" mask="url(#w9gCmpM)"><path fill="currentColor" stroke="none" d="M8 3.5L13 3.5C13.828 3.5 14.5 4.172 14.5 5L14.5 11C14.5 11.828 13.828 12.5 13 12.5L3 12.5C2.172 12.5 1.5 11.828 1.5 11L1.5 5C1.5 4.172 2.172 3.5 3 3.5L8 3.5Z"></path></g><g clip-path="url(#w9gCmpR)"><path d="M1.5 10.5L4.439 7.561C5.025 6.975 5.975 6.975 6.561 7.561L11.5 12.5"></path><path fill="currentColor" stroke="none" d="M10 6C10 5.448 10.448 5 11 5C11.552 5 12 5.448 12 6C12 6.552 11.552 7 11 7C10.448 7 10 6.552 10 6Z"></path></g><g><animateTransform attributeName="transform" type="translate" dur="3.2s" repeatCount="indefinite" keyTimes="0;0.094;0.297;0.391;0.641;0.719;0.891;1" values="0 0;0 0;5 0;5 0;-4 0;-4 0;0 0;0 0" calcMode="spline" keySplines="0 0 1 1;.6 0 .25 1;0 0 1 1;.6 0 .25 1;0 0 1 1;.6 0 .25 1;0 0 1 1"/><path d="M7.5 1.5L7.5 13.5"></path></g></svg>
```

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L8 13L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.124 11.695 1.109 11.653 1.096 11.611L5.5 7.207L7 8.707L7 7.293L5.5 5.793L1 10.293L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L7 3L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L8 4L8 8.293L11.707 12L13 12C13.276 12 13.512 11.902 13.707 11.707ZM10.293 5.293C10.488 5.098 10.724 5 11 5C11.276 5 11.512 5.098 11.707 5.293C11.902 5.488 12 5.724 12 6C12 6.276 11.902 6.512 11.707 6.707C11.512 6.902 11.276 7 11 7C10.724 7 10.488 6.902 10.293 6.707C10.098 6.512 10 6.276 10 6C10 5.724 10.098 5.488 10.293 5.293ZM8 12L10.293 12L8 9.707L8 12Z"/></svg>
```

### React

```tsx
// Gentleface "image-compare" (line-round), MIT. https://gentleface.com/icons/image-compare
import type { SVGProps } from 'react';

export function ImageCompareIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L8 13L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.124 11.695 1.109 11.653 1.096 11.611L5.5 7.207L7 8.707L7 7.293L5.5 5.793L1 10.293L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L7 3L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L8 4L8 8.293L11.707 12L13 12C13.276 12 13.512 11.902 13.707 11.707ZM10.293 5.293C10.488 5.098 10.724 5 11 5C11.276 5 11.512 5.098 11.707 5.293C11.902 5.488 12 5.724 12 6C12 6.276 11.902 6.512 11.707 6.707C11.512 6.902 11.276 7 11 7C10.724 7 10.488 6.902 10.293 6.707C10.098 6.512 10 6.276 10 6C10 5.724 10.098 5.488 10.293 5.293ZM8 12L10.293 12L8 9.707L8 12Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "image-compare" (line-round), MIT. https://gentleface.com/icons/image-compare -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L8 13L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.124 11.695 1.109 11.653 1.096 11.611L5.5 7.207L7 8.707L7 7.293L5.5 5.793L1 10.293L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L7 3L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L8 4L8 8.293L11.707 12L13 12C13.276 12 13.512 11.902 13.707 11.707ZM10.293 5.293C10.488 5.098 10.724 5 11 5C11.276 5 11.512 5.098 11.707 5.293C11.902 5.488 12 5.724 12 6C12 6.276 11.902 6.512 11.707 6.707C11.512 6.902 11.276 7 11 7C10.724 7 10.488 6.902 10.293 6.707C10.098 6.512 10 6.276 10 6C10 5.724 10.098 5.488 10.293 5.293ZM8 12L10.293 12L8 9.707L8 12Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "image-compare" (line-round), MIT. https://gentleface.com/icons/image-compare -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L8 13L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.124 11.695 1.109 11.653 1.096 11.611L5.5 7.207L7 8.707L7 7.293L5.5 5.793L1 10.293L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L7 3L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L8 4L8 8.293L11.707 12L13 12C13.276 12 13.512 11.902 13.707 11.707ZM10.293 5.293C10.488 5.098 10.724 5 11 5C11.276 5 11.512 5.098 11.707 5.293C11.902 5.488 12 5.724 12 6C12 6.276 11.902 6.512 11.707 6.707C11.512 6.902 11.276 7 11 7C10.724 7 10.488 6.902 10.293 6.707C10.098 6.512 10 6.276 10 6C10 5.724 10.098 5.488 10.293 5.293ZM8 12L10.293 12L8 9.707L8 12Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "image-compare" (line-round), MIT. https://gentleface.com/icons/image-compare. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/image-compare.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "image-compare" (line-round), MIT. https://gentleface.com/icons/image-compare. Takes the text color. */
.icon-image-compare {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L8 13L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.124 11.695 1.109 11.653 1.096 11.611L5.5 7.207L7 8.707L7 7.293L5.5 5.793L1 10.293L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L7 3L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L8 4L8 8.293L11.707 12L13 12C13.276 12 13.512 11.902 13.707 11.707ZM10.293 5.293C10.488 5.098 10.724 5 11 5C11.276 5 11.512 5.098 11.707 5.293C11.902 5.488 12 5.724 12 6C12 6.276 11.902 6.512 11.707 6.707C11.512 6.902 11.276 7 11 7C10.724 7 10.488 6.902 10.293 6.707C10.098 6.512 10 6.276 10 6C10 5.724 10.098 5.488 10.293 5.293ZM8 12L10.293 12L8 9.707L8 12Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L8 13L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.124 11.695 1.109 11.653 1.096 11.611L5.5 7.207L7 8.707L7 7.293L5.5 5.793L1 10.293L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L7 3L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L8 4L8 8.293L11.707 12L13 12C13.276 12 13.512 11.902 13.707 11.707ZM10.293 5.293C10.488 5.098 10.724 5 11 5C11.276 5 11.512 5.098 11.707 5.293C11.902 5.488 12 5.724 12 6C12 6.276 11.902 6.512 11.707 6.707C11.512 6.902 11.276 7 11 7C10.724 7 10.488 6.902 10.293 6.707C10.098 6.512 10 6.276 10 6C10 5.724 10.098 5.488 10.293 5.293ZM8 12L10.293 12L8 9.707L8 12Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L8 13L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.124 11.695 1.109 11.653 1.096 11.611L5.5 7.207L7 8.707L7 7.293L5.5 5.793L1 10.293L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L7 3L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L8 4L8 8.293L11.707 12L13 12C13.276 12 13.512 11.902 13.707 11.707ZM10.293 5.293C10.488 5.098 10.724 5 11 5C11.276 5 11.512 5.098 11.707 5.293C11.902 5.488 12 5.724 12 6C12 6.276 11.902 6.512 11.707 6.707C11.512 6.902 11.276 7 11 7C10.724 7 10.488 6.902 10.293 6.707C10.098 6.512 10 6.276 10 6C10 5.724 10.098 5.488 10.293 5.293ZM8 12L10.293 12L8 9.707L8 12Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "image-compare" (line-round), MIT. https://gentleface.com/icons/image-compare
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#image-compare"/></svg>
```

### SwiftUI

```swift
// Gentleface "image-compare" (line-round), MIT. https://gentleface.com/icons/image-compare
import SwiftUI

struct ImageCompareIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 7.144, y: 1.144))
        p.addCurve(to: CGPoint(x: 7.5, y: 1), control1: CGPoint(x: 7.241, y: 1.048), control2: CGPoint(x: 7.359, y: 1))
        p.addCurve(to: CGPoint(x: 7.856, y: 1.144), control1: CGPoint(x: 7.641, y: 1), control2: CGPoint(x: 7.759, y: 1.048))
        p.addCurve(to: CGPoint(x: 8, y: 1.5), control1: CGPoint(x: 7.952, y: 1.241), control2: CGPoint(x: 8, y: 1.359))
        p.addLine(to: CGPoint(x: 8, y: 3))
        p.addLine(to: CGPoint(x: 13, y: 3))
        p.addCurve(to: CGPoint(x: 13.736, y: 3.14), control1: CGPoint(x: 13.254, y: 3), control2: CGPoint(x: 13.5, y: 3.047))
        p.addCurve(to: CGPoint(x: 14.414, y: 3.586), control1: CGPoint(x: 13.993, y: 3.242), control2: CGPoint(x: 14.219, y: 3.391))
        p.addCurve(to: CGPoint(x: 14.86, y: 4.264), control1: CGPoint(x: 14.609, y: 3.781), control2: CGPoint(x: 14.758, y: 4.007))
        p.addCurve(to: CGPoint(x: 15, y: 5), control1: CGPoint(x: 14.953, y: 4.5), control2: CGPoint(x: 15, y: 4.746))
        p.addLine(to: CGPoint(x: 15, y: 11))
        p.addCurve(to: CGPoint(x: 14.86, y: 11.736), control1: CGPoint(x: 15, y: 11.254), control2: CGPoint(x: 14.953, y: 11.5))
        p.addCurve(to: CGPoint(x: 14.414, y: 12.414), control1: CGPoint(x: 14.758, y: 11.993), control2: CGPoint(x: 14.609, y: 12.219))
        p.addCurve(to: CGPoint(x: 13.736, y: 12.86), control1: CGPoint(x: 14.219, y: 12.609), control2: CGPoint(x: 13.993, y: 12.758))
        p.addCurve(to: CGPoint(x: 13, y: 13), control1: CGPoint(x: 13.5, y: 12.953), control2: CGPoint(x: 13.254, y: 13))
        p.addLine(to: CGPoint(x: 8, y: 13))
        p.addLine(to: CGPoint(x: 8, y: 13.5))
        p.addCurve(to: CGPoint(x: 7.856, y: 13.856), control1: CGPoint(x: 8, y: 13.641), control2: CGPoint(x: 7.952, y: 13.759))
        p.addCurve(to: CGPoint(x: 7.5, y: 14), control1: CGPoint(x: 7.759, y: 13.952), control2: CGPoint(x: 7.641, y: 14))
        p.addCurve(to: CGPoint(x: 7.144, y: 13.856), control1: CGPoint(x: 7.359, y: 14), control2: CGPoint(x: 7.241, y: 13.952))
        p.addCurve(to: CGPoint(x: 7, y: 13.5), control1: CGPoint(x: 7.048, y: 13.759), control2: CGPoint(x: 7, y: 13.641))
        p.addLine(to: CGPoint(x: 7, y: 13))
        p.addLine(to: CGPoint(x: 3, y: 13))
        p.addCurve(to: CGPoint(x: 2.264, y: 12.86), control1: CGPoint(x: 2.746, y: 13), control2: CGPoint(x: 2.5, y: 12.953))
        p.addCurve(to: CGPoint(x: 1.586, y: 12.414), control1: CGPoint(x: 2.007, y: 12.758), control2: CGPoint(x: 1.781, y: 12.609))
        p.addCurve(to: CGPoint(x: 1.14, y: 11.736), control1: CGPoint(x: 1.391, y: 12.219), control2: CGPoint(x: 1.242, y: 11.993))
        p.addCurve(to: CGPoint(x: 1.096, y: 11.611), control1: CGPoint(x: 1.124, y: 11.695), control2: CGPoint(x: 1.109, y: 11.653))
        p.addLine(to: CGPoint(x: 5.5, y: 7.207))
        p.addLine(to: CGPoint(x: 7, y: 8.707))
        p.addLine(to: CGPoint(x: 7, y: 7.293))
        p.addLine(to: CGPoint(x: 5.5, y: 5.793))
        p.addLine(to: CGPoint(x: 1, y: 10.293))
        p.addLine(to: CGPoint(x: 1, y: 5))
        p.addCurve(to: CGPoint(x: 1.14, y: 4.264), control1: CGPoint(x: 1, y: 4.746), control2: CGPoint(x: 1.047, y: 4.5))
        p.addCurve(to: CGPoint(x: 1.586, y: 3.586), control1: CGPoint(x: 1.242, y: 4.007), control2: CGPoint(x: 1.391, y: 3.781))
        p.addCurve(to: CGPoint(x: 2.264, y: 3.14), control1: CGPoint(x: 1.781, y: 3.391), control2: CGPoint(x: 2.007, y: 3.242))
        p.addCurve(to: CGPoint(x: 3, y: 3), control1: CGPoint(x: 2.5, y: 3.047), control2: CGPoint(x: 2.746, y: 3))
        p.addLine(to: CGPoint(x: 7, y: 3))
        p.addLine(to: CGPoint(x: 7, y: 1.5))
        p.addCurve(to: CGPoint(x: 7.144, y: 1.144), control1: CGPoint(x: 7, y: 1.359), control2: CGPoint(x: 7.048, y: 1.241))
        p.closeSubpath()
        p.move(to: CGPoint(x: 13.707, y: 11.707))
        p.addCurve(to: CGPoint(x: 14, y: 11), control1: CGPoint(x: 13.902, y: 11.512), control2: CGPoint(x: 14, y: 11.276))
        p.addLine(to: CGPoint(x: 14, y: 5))
        p.addCurve(to: CGPoint(x: 13.707, y: 4.293), control1: CGPoint(x: 14, y: 4.724), control2: CGPoint(x: 13.902, y: 4.488))
        p.addCurve(to: CGPoint(x: 13, y: 4), control1: CGPoint(x: 13.512, y: 4.098), control2: CGPoint(x: 13.276, y: 4))
        p.addLine(to: CGPoint(x: 8, y: 4))
        p.addLine(to: CGPoint(x: 8, y: 8.293))
        p.addLine(to: CGPoint(x: 11.707, y: 12))
        p.addLine(to: CGPoint(x: 13, y: 12))
        p.addCurve(to: CGPoint(x: 13.707, y: 11.707), control1: CGPoint(x: 13.276, y: 12), control2: CGPoint(x: 13.512, y: 11.902))
        p.closeSubpath()
        p.move(to: CGPoint(x: 10.293, y: 5.293))
        p.addCurve(to: CGPoint(x: 11, y: 5), control1: CGPoint(x: 10.488, y: 5.098), control2: CGPoint(x: 10.724, y: 5))
        p.addCurve(to: CGPoint(x: 11.707, y: 5.293), control1: CGPoint(x: 11.276, y: 5), control2: CGPoint(x: 11.512, y: 5.098))
        p.addCurve(to: CGPoint(x: 12, y: 6), control1: CGPoint(x: 11.902, y: 5.488), control2: CGPoint(x: 12, y: 5.724))
        p.addCurve(to: CGPoint(x: 11.707, y: 6.707), control1: CGPoint(x: 12, y: 6.276), control2: CGPoint(x: 11.902, y: 6.512))
        p.addCurve(to: CGPoint(x: 11, y: 7), control1: CGPoint(x: 11.512, y: 6.902), control2: CGPoint(x: 11.276, y: 7))
        p.addCurve(to: CGPoint(x: 10.293, y: 6.707), control1: CGPoint(x: 10.724, y: 7), control2: CGPoint(x: 10.488, y: 6.902))
        p.addCurve(to: CGPoint(x: 10, y: 6), control1: CGPoint(x: 10.098, y: 6.512), control2: CGPoint(x: 10, y: 6.276))
        p.addCurve(to: CGPoint(x: 10.293, y: 5.293), control1: CGPoint(x: 10, y: 5.724), control2: CGPoint(x: 10.098, y: 5.488))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8, y: 12))
        p.addLine(to: CGPoint(x: 10.293, y: 12))
        p.addLine(to: CGPoint(x: 8, y: 9.707))
        p.addLine(to: CGPoint(x: 8, y: 12))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// ImageCompareIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "image-compare" (line-round), MIT. https://gentleface.com/icons/image-compare
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val ImageCompareIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "image-compare", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L8 13L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.124 11.695 1.109 11.653 1.096 11.611L5.5 7.207L7 8.707L7 7.293L5.5 5.793L1 10.293L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L7 3L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L8 4L8 8.293L11.707 12L13 12C13.276 12 13.512 11.902 13.707 11.707ZM10.293 5.293C10.488 5.098 10.724 5 11 5C11.276 5 11.512 5.098 11.707 5.293C11.902 5.488 12 5.724 12 6C12 6.276 11.902 6.512 11.707 6.707C11.512 6.902 11.276 7 11 7C10.724 7 10.488 6.902 10.293 6.707C10.098 6.512 10 6.276 10 6C10 5.724 10.098 5.488 10.293 5.293ZM8 12L10.293 12L8 9.707L8 12Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(ImageCompareIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_image_compare.xml · Gentleface "image-compare" (line-round), MIT. https://gentleface.com/icons/image-compare -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L8 13L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.124 11.695 1.109 11.653 1.096 11.611L5.5 7.207L7 8.707L7 7.293L5.5 5.793L1 10.293L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L7 3L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L8 4L8 8.293L11.707 12L13 12C13.276 12 13.512 11.902 13.707 11.707ZM10.293 5.293C10.488 5.098 10.724 5 11 5C11.276 5 11.512 5.098 11.707 5.293C11.902 5.488 12 5.724 12 6C12 6.276 11.902 6.512 11.707 6.707C11.512 6.902 11.276 7 11 7C10.724 7 10.488 6.902 10.293 6.707C10.098 6.512 10 6.276 10 6C10 5.724 10.098 5.488 10.293 5.293ZM8 12L10.293 12L8 9.707L8 12Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "image-compare" (line-round), MIT. https://gentleface.com/icons/image-compare
import 'package:flutter/widgets.dart';

class ImageCompareIcon extends StatelessWidget {
  const ImageCompareIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _ImageCompareIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _ImageCompareIconPainter extends CustomPainter {
  _ImageCompareIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(7.144, 1.144)
      ..cubicTo(7.241, 1.048, 7.359, 1, 7.5, 1)
      ..cubicTo(7.641, 1, 7.759, 1.048, 7.856, 1.144)
      ..cubicTo(7.952, 1.241, 8, 1.359, 8, 1.5)
      ..lineTo(8, 3)
      ..lineTo(13, 3)
      ..cubicTo(13.254, 3, 13.5, 3.047, 13.736, 3.14)
      ..cubicTo(13.993, 3.242, 14.219, 3.391, 14.414, 3.586)
      ..cubicTo(14.609, 3.781, 14.758, 4.007, 14.86, 4.264)
      ..cubicTo(14.953, 4.5, 15, 4.746, 15, 5)
      ..lineTo(15, 11)
      ..cubicTo(15, 11.254, 14.953, 11.5, 14.86, 11.736)
      ..cubicTo(14.758, 11.993, 14.609, 12.219, 14.414, 12.414)
      ..cubicTo(14.219, 12.609, 13.993, 12.758, 13.736, 12.86)
      ..cubicTo(13.5, 12.953, 13.254, 13, 13, 13)
      ..lineTo(8, 13)
      ..lineTo(8, 13.5)
      ..cubicTo(8, 13.641, 7.952, 13.759, 7.856, 13.856)
      ..cubicTo(7.759, 13.952, 7.641, 14, 7.5, 14)
      ..cubicTo(7.359, 14, 7.241, 13.952, 7.144, 13.856)
      ..cubicTo(7.048, 13.759, 7, 13.641, 7, 13.5)
      ..lineTo(7, 13)
      ..lineTo(3, 13)
      ..cubicTo(2.746, 13, 2.5, 12.953, 2.264, 12.86)
      ..cubicTo(2.007, 12.758, 1.781, 12.609, 1.586, 12.414)
      ..cubicTo(1.391, 12.219, 1.242, 11.993, 1.14, 11.736)
      ..cubicTo(1.124, 11.695, 1.109, 11.653, 1.096, 11.611)
      ..lineTo(5.5, 7.207)
      ..lineTo(7, 8.707)
      ..lineTo(7, 7.293)
      ..lineTo(5.5, 5.793)
      ..lineTo(1, 10.293)
      ..lineTo(1, 5)
      ..cubicTo(1, 4.746, 1.047, 4.5, 1.14, 4.264)
      ..cubicTo(1.242, 4.007, 1.391, 3.781, 1.586, 3.586)
      ..cubicTo(1.781, 3.391, 2.007, 3.242, 2.264, 3.14)
      ..cubicTo(2.5, 3.047, 2.746, 3, 3, 3)
      ..lineTo(7, 3)
      ..lineTo(7, 1.5)
      ..cubicTo(7, 1.359, 7.048, 1.241, 7.144, 1.144)
      ..close()
      ..moveTo(13.707, 11.707)
      ..cubicTo(13.902, 11.512, 14, 11.276, 14, 11)
      ..lineTo(14, 5)
      ..cubicTo(14, 4.724, 13.902, 4.488, 13.707, 4.293)
      ..cubicTo(13.512, 4.098, 13.276, 4, 13, 4)
      ..lineTo(8, 4)
      ..lineTo(8, 8.293)
      ..lineTo(11.707, 12)
      ..lineTo(13, 12)
      ..cubicTo(13.276, 12, 13.512, 11.902, 13.707, 11.707)
      ..close()
      ..moveTo(10.293, 5.293)
      ..cubicTo(10.488, 5.098, 10.724, 5, 11, 5)
      ..cubicTo(11.276, 5, 11.512, 5.098, 11.707, 5.293)
      ..cubicTo(11.902, 5.488, 12, 5.724, 12, 6)
      ..cubicTo(12, 6.276, 11.902, 6.512, 11.707, 6.707)
      ..cubicTo(11.512, 6.902, 11.276, 7, 11, 7)
      ..cubicTo(10.724, 7, 10.488, 6.902, 10.293, 6.707)
      ..cubicTo(10.098, 6.512, 10, 6.276, 10, 6)
      ..cubicTo(10, 5.724, 10.098, 5.488, 10.293, 5.293)
      ..close()
      ..moveTo(8, 12)
      ..lineTo(10.293, 12)
      ..lineTo(8, 9.707)
      ..lineTo(8, 12)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_ImageCompareIconPainter old) => old.color != color;
}
```
