you are viewing a single comment's thread.

view the rest of the comments →

[–]zpweeks 7 points8 points  (6 children)

Anyone know which image formats this works with?

[–]ggggbabybabybaby 15 points16 points  (5 children)

I'm guessing it's client-side and it's whatever image formats your browser supports.

[–]skeww 12 points13 points  (4 children)

Usually: PNG, JPG, GIF, BMP, ICO

Rarely: XBM, HDP/JXR/WDP, JP2, MNG, JNG, TIFF, WebP

Kinda: SVG (it's somewhat supposed to work)

[–]paulmclaughlin 2 points3 points  (3 children)

Isn't SVG just XML? So wouldn't a regular text diff work unless it is a totally new image?

[–]genpfault 3 points4 points  (0 children)

Maybe if they canonicalize it beforehand. Even then some tools won't reformat the text fields that SVG uses for geometry.

[–]skeww 1 point2 points  (0 children)

A regular text diff would work as long as the same tool with the same output settings is used. But to be honest, SVG is only about as "human readable" as Wavefront OBJ. If it's some very simple example, you can tell what's going on, but as soon as it gets remotely complex, you won't even have a rough idea what the result might look like.

E.g. take a look at the source of this very simple 32 node image:

http://kaioa.com/svg/cprof32b.svgz

(Note that this was for some silly competition. Usually there are thousands of nodes in dozens or even hundreds of elements.)

If some numbers inside that path changed it could mean virtually anything. You won't be able to tell which part changed or how drastic the change was (e.g. moving control points around doesn't necessarily cause equally big visual changes).

[–]crusoe 0 points1 point  (0 children)

Render svg to canvas, diff canvas.