Community Wishlist Survey 2017/Multimedia and Commons/Textual diffs for SVGs
Textual diffs for SVGs
- Problem: Comparing different media versions is often difficult as the changes may not be noticeable. This stands for SVGs as well as other media formats; however, as SVG is a textual file format, its changes can be shown as textual diffs.
- Who would benefit: Advanced users who understand the SVG source code.
- Proposed solution: Use the existing diff used for wikitext changes also for SVG (and any other textual file format), provide a diff link in the first column of the file history like
(current | diff)
/(restore | diff)
. - More comments:
- Phabricator tickets:
- Proposer: Tacsipacsi (talk) 20:22, 6 November 2017 (UTC)
- Translations: none yet
Discussion Edit
Do you have a specific example of an SVG file (on Wikimedia Commons etc) which got updated and when being able to view such a diff would have been helpful? --AKlapper (WMF) (talk) 21:30, 7 November 2017 (UTC)
- It came into my mind just after the previous year’s survey, I don’t remember specific image which I had in my mind ten months ago… But maps like Kosovo relations.svg are good examples: this file’s changes are mainly properly noted (except if the change wasn’t the one stated in the upload comment), but some versions don’t have comment while they—I suppose—are mainly consist of toggling CSS classes, so it’s easily understandable from the textual diff. Also, textual files can be changed in such a way that they are really the same pixel by pixel, but the source code is different (from changing a comment to a major cleanup). —Tacsipacsi (talk) 22:07, 7 November 2017 (UTC)
This seems like a very limited and specific use case, that could easily be addressed with a gadget, that uses an online diff service or something to compare two files, without forcing an extra useless button upon people who won't need it. —TheDJ (talk • contribs) 10:46, 8 November 2017 (UTC)
- At least the backend should be done—why would I need to use a third-party service when we have a working diff system? Also, MediaWiki already has many links which I should call bloatware at more visible places like the “beta” link in the personal toolbar (one can easily get there from the preferences; or why don’t we have separate links for all preferences tabs?). OK, make it opt-in, but do it in PHP—it’s not easier to do client side than the sandbox link, which is not even opt-out. Please do not mark it as nonsense or useless ab ovo, just vote against it in the voting phase. It may turn out than that nobody else would need this feature. —Tacsipacsi (talk) 22:15, 8 November 2017 (UTC)
I'd think a state-of-the-art visual compare tool would address a wider audience, although it wouldn't be completely equivalent. It would be more intuitive for non-nerds and it's often more important to get help spotting inconspicuous visual changes than calling attention to some purely technical rearrangement of internal data structures. I'm picturing something that shows two images on top of each other and a visibility seam between that you can grab and slide around like here, and maybe some compensation mechanism to disregard if content was just shifted around on the page.--Reseletti (talk) 15:59, 9 November 2017 (UTC)
- Yes, a visual diff might be more important. It’s also better because it can work for all image types (but still not for other media types: videos, sound and multipage documents like PDF and DjVu). —Tacsipacsi (talk) 21:26, 9 November 2017 (UTC)
- This makes sense for PNGs and GIFs because they are losslessly compressed, but JPEG quantization has real potential to make visual diffs a dog's breakfast. MER-C (talk) 03:51, 10 November 2017 (UTC)
- The above example works also for JPEG, as it doesn’t compare the images by itself, rather makes the user easier to do so. —Tacsipacsi (talk) 14:31, 10 November 2017 (UTC)
- This makes sense for PNGs and GIFs because they are losslessly compressed, but JPEG quantization has real potential to make visual diffs a dog's breakfast. MER-C (talk) 03:51, 10 November 2017 (UTC)
- Expanding on this: general SVG uploading via text would be very good to have too. It is a format that should and could be changed very easily, but currently we are stuck with a system that doesn’t serve its needs well enough despite it gaining traction for the usage in all kinds of graphics. stjn[ru] 21:13, 11 November 2017 (UTC)
- For years I was struck by how strange it is when people are trying to improve existing SVG files by tweaking their source-code and we have no good way of comparing before and after versions. --Jarekt (talk) 14:29, 16 November 2017 (UTC)
Voting Edit
- Support I also think SVGs should be editable like CSS pages, since this would make them easier to edit and would probably also allow easier semi-automatic editing. Jc86035 (talk) 01:27, 28 November 2017 (UTC)
- Support I think this could be useful. Rschen7754 01:43, 28 November 2017 (UTC)
- Support Mahir256 (talk) 07:55, 28 November 2017 (UTC)
- Support —viciarg414 08:21, 28 November 2017 (UTC)
- Support Dvorapa (talk) 10:30, 28 November 2017 (UTC)
- Support β16 - (talk) 11:31, 28 November 2017 (UTC)
- Support --Liuxinyu970226 (talk) 13:18, 28 November 2017 (UTC)
- Support YFdyh000 (talk) 17:25, 28 November 2017 (UTC)
- Support — Draceane talkcontrib. 18:33, 28 November 2017 (UTC)
- Support — Johannes Kalliauer - Talk | Contributions 21:46, 28 November 2017 (UTC)
- Support Thomas Obermair 4 (talk) 22:58, 28 November 2017 (UTC)
- Support Hedwig in Washington (talk) 02:55, 29 November 2017 (UTC)
- Support Donald Trung (Talk 🤳🏻) (My global lock 🔒) (My global unlock 🔓) 11:06, 29 November 2017 (UTC)
- Support NMaia (talk) 12:58, 29 November 2017 (UTC)
- Support Seb26 (talk) 21:56, 29 November 2017 (UTC)
- Support MGChecker (talk) 22:08, 29 November 2017 (UTC)
- Support --g (talk) 00:28, 30 November 2017 (UTC)
- Support - Evad37 (talk) 00:29, 30 November 2017 (UTC)
- Support --Jarekt (talk) 04:32, 30 November 2017 (UTC)
- Support - yona B. (D) 08:27, 30 November 2017 (UTC)
- Support Shivastar (talk) 09:12, 30 November 2017 (UTC)
- Support M11rtinb (talk) 10:25, 30 November 2017 (UTC)
- Support Tohaomg (talk) 18:36, 30 November 2017 (UTC)
- Support Jklamo (talk) 00:59, 1 December 2017 (UTC)
- Support --OrsolyaVirág (talk) 17:27, 1 December 2017 (UTC)
- Support ~Cybularny Speak? 12:45, 2 December 2017 (UTC)
- Support ديفيد عادل وهبة خليل 2 (talk) 15:47, 2 December 2017 (UTC)
- Support --Pallerti Rabbit Hole 18:45, 2 December 2017 (UTC)
- Support Waldir (talk) 10:57, 3 December 2017 (UTC)
- Support Gryllida 01:03, 4 December 2017 (UTC)
- Support Reneman (talk) 17:08, 5 December 2017 (UTC)
- Support Christallkeks (talk) 12:50, 6 December 2017 (UTC)
- Support Ahm masum (talk) 07:56, 7 December 2017 (UTC)
- Support --Szilas (talk) 19:45, 9 December 2017 (UTC)
- Support - Akela (talk) 22:51, 9 December 2017 (UTC)
- Support --EniPort (talk) 23:30, 9 December 2017 (UTC)
- Support Dispenser (talk) 03:54, 11 December 2017 (UTC)
- Support X:: black ::X (talk) 08:08, 11 December 2017 (UTC)
- Support Szalax (talk) 16:14, 11 December 2017 (UTC)