Gentleface › Photo & image › image-compare
image-compare icon
image-compareImage compare: before after, compare images, image diff, before and after. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Animated image-compare-slide · line-round
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.
Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.3 s to 2.9 s. Examples and helper.
Code line-round
<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>
// 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: see /icons/image-compare.md
Svelte: see /icons/image-compare.md
HTML img: see /icons/image-compare.md
CSS: see /icons/image-compare.md
Data URL: see /icons/image-compare.md
Sprite: see /icons/image-compare.md
SwiftUI: see /icons/image-compare.md
Compose: see /icons/image-compare.md
Android XML: see /icons/image-compare.md
Flutter: see /icons/image-compare.md
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. 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. More in how to use.
With npm: import { ImageCompareIcon } from '@gentleface/react'; (setup).
Meaning
- Use it for
- before after, compare images, image diff, before and after, compare photos
- 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
- Tags
- compare, before after, before and after, comparison, slider, split view, image diff, photo, edit, preview
- Category
- Photo & image
- Component name
ImageCompareIcon- History
- 20 px drawn, 24 px drawn, added, released in 0.4.0
- Since
- version 0.4.0
Family 34
More photo & image icons
aperture background-remove background-remove-stripes background-replace blur blur-off bolt-auto camera camera-alert camera-arrow-up camera-gear camera-link camera-off camera-pencil camera-plus camera-rotate · all photo & image icons
For agents
Metadata: /icons/image-compare.json · Markdown: /icons/image-compare.md · SVG: https://gentleface.com/svg/{style}/16/image-compare.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/image-compare.png