Last modified: 2014-11-17 11:45:01 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T37342, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35342 - WikiEditor: Add SVG versions of editing toolbar icons
WikiEditor: Add SVG versions of editing toolbar icons
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
WikiEditor (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Derk-Jan Hartman
: easy
Depends on:
Blocks: hidpi 70679
  Show dependency treegraph
 
Reported: 2012-03-19 23:29 UTC by Brion Vibber
Modified: 2014-11-17 11:45 UTC (History)
16 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
screenshot of editing on en.wikipedia.org on iPad 3 (332.77 KB, image/png)
2012-03-19 23:30 UTC, Brion Vibber
Details
Screenshot of WikiEditor after the patch (87.59 KB, image/png)
2013-11-24 21:51 UTC, Mateusz Maćkowski
Details
screenshot safari 7 (22.79 KB, image/png)
2014-04-08 12:55 UTC, Derk-Jan Hartman
Details
Zip of icon files (99.96 KB, application/zip)
2014-05-18 12:54 UTC, Derk-Jan Hartman
Details
Letter B fixed (2.78 KB, image/svg+xml)
2014-05-23 16:41 UTC, PRO
Details
Screenshot - vector-bar completely disordered (57.92 KB, image/png)
2014-05-23 16:50 UTC, PRO
Details
button-sprite.svg fixed (10.66 KB, image/svg+xml)
2014-05-28 06:38 UTC, PRO
Details
Alignment trouble (127.88 KB, image/png)
2014-10-26 12:15 UTC, Derk-Jan Hartman
Details

Description Brion Vibber 2012-03-19 23:29:52 UTC
WikiEditor toolbar icons are low-resolution raster images, and appear visibly pixelated on a high-resolution display such as iPad third-gen or when zoomed in.

Recommend using SVG images with PNG fallbacks.

Note that currently many of these images are sprited and may need to be re-separated and re-drawn.
Comment 1 Brion Vibber 2012-03-19 23:30:15 UTC
Created attachment 10281 [details]
screenshot of editing on en.wikipedia.org on iPad 3
Comment 2 Gerrit Notification Bot 2013-11-24 21:47:18 UTC
Change 97454 had a related patch set uploaded by M4tx:
Add SVG versions of toolbar icons

https://gerrit.wikimedia.org/r/97454
Comment 3 Mateusz Maćkowski 2013-11-24 21:51:56 UTC
Created attachment 13895 [details]
Screenshot of WikiEditor after the patch
Comment 4 Andre Klapper 2013-12-04 18:44:34 UTC
Pau / Brandon: Could you review the patch (8 lines of CSS and a bunch of new SVG files), or do you have an idea who could?
Comment 5 Brandon Harris 2013-12-04 18:52:02 UTC
Done and commented.
Comment 6 Derk-Jan Hartman 2014-04-08 12:55:43 UTC
Created attachment 15051 [details]
screenshot safari 7

I notice a few small problems the shadow of the chars seems a tad excessive, the red traffic sign around the W is a bit shifted for me (likely Mac Safari specific issues).
Comment 7 Jared Zimmerman (WMF) 2014-05-01 19:58:37 UTC
DJ, looks "good enough for now" I'd like for us to clean this up, and switch to a smaller set of icons that use the new wikifont icons when we can https://www.mediawiki.org/wiki/Design/Wikicons
Comment 8 Gerrit Notification Bot 2014-05-06 11:53:36 UTC
Change 97454 merged by jenkins-bot:
Add SVG versions of toolbar icons

https://gerrit.wikimedia.org/r/97454
Comment 9 Krinkle 2014-05-13 18:22:11 UTC
Comment on https://gerrit.wikimedia.org/r/97454:

FIXME: The "B" button looks broken.

> This change changed the B button to have 3D depth
> whereas all the others remain flat (the book icon
> also some depth to it, but not beyond a simple surface,
> which looks fine). The depth is sufficiently odd that
> I suspect this was not done on purpose. 
>
> Screenshot: http://i.imgur.com/mBZm28W.png
> (bottom row shows the new SVG versions)
>
> It looks like the outline that is making it look
> 3D is actually just the regular outline, and the
> black filling for some reason only covers half
> of the width.
Comment 10 Derk-Jan Hartman 2014-05-14 08:36:05 UTC
I also left a request for assistence in the commons graphics lab. https://commons.wikimedia.org/wiki/Commons:Graphics_village_pump#SVG_improvements_for_MediaWiki_toolbar
Comment 11 AnonMoos 2014-05-14 13:39:27 UTC
Re: request for assistance in the Commons Graphics village pump:

It might help if the SVG code in question were available somewhere as an ordinary SVG file, and not only as embedded in some kind of generalized source code patch management database system that not everybody may feel like trying to come to terms with...
Comment 12 Derk-Jan Hartman 2014-05-14 13:47:45 UTC
Good point, i'll upload them on commons.wm.org
Comment 13 Jared Zimmerman (WMF) 2014-05-14 18:45:15 UTC
Anything that is already part of wikifont doens't need to be redrawn https://github.com/munmay/WikiFont/blob/master/Screenshot-current.png
Comment 14 PRO 2014-05-15 11:51:32 UTC
I thought there is an Wikimedia icon initiative? I'm interesting to do this like simple in the Tango/GNOME style!? [[File:Gnome-format-text-bold.svg]]
Comment 15 Derk-Jan Hartman 2014-05-15 13:17:39 UTC
Eh, this is just about the old style icons, we are not talking about replacing them...
Comment 16 Jared Zimmerman (WMF) 2014-05-15 16:50:22 UTC
@DJ, the proposed SVG icons were significantly different (bevels, embossing, gradients) which definitely diverge from what we had, I was just saying, if we're diverging from what we had, I'd like to diverge in the right direction, not in the direction of greater ornamentation.
Comment 17 Derk-Jan Hartman 2014-05-18 12:54:37 UTC
Created attachment 15431 [details]
Zip of icon files
Comment 18 PRO 2014-05-23 16:41:35 UTC
Created attachment 15465 [details]
Letter B fixed

Font to pfad converted , remove all transform attributes.
Comment 19 PRO 2014-05-23 16:50:53 UTC
Created attachment 15466 [details]
Screenshot - vector-bar completely disordered

It appears also if I logged out. Win 7 Chrome 34. Firefox is normal.
Comment 20 PRO 2014-05-23 16:51:52 UTC
Comment on attachment 15465 [details]
Letter B fixed

font type to path
Comment 21 PRO 2014-05-23 20:43:25 UTC
Comment on attachment 15466 [details]
Screenshot - vector-bar completely disordered

Now everything is ok again, I've nothing changed.
Comment 22 PRO 2014-05-28 06:38:44 UTC
Created attachment 15497 [details]
button-sprite.svg fixed

I've optimized the button-sprite and also converted all text to path. Check it out.
Comment 23 PRO 2014-05-28 06:45:06 UTC
Comment on attachment 15497 [details]
button-sprite.svg fixed

All GaussianBlur filter are still present although this is very unusual for small icons. I would make a version without GaussianBlur. (File size before 152.841 Bytes after my optimation = 34.961, SVGZ compression = 10.918 Bytes)
Comment 24 Derk-Jan Hartman 2014-05-28 11:47:46 UTC
Thank you PRO, i'll get on this in the next week.
Comment 25 Derk-Jan Hartman 2014-05-29 10:49:01 UTC
@PRO, btw we don't need it to be SVGZ compressed, because that already happens on the fly.

I concur that the gaussian blur is somewhat unusual, and I'm not a big fan of it myself.
Comment 26 Eduard Braun 2014-07-11 09:26:33 UTC
Is anyone working on merging PRO's corrected button sprite into code?

I'm also seeing what Krinkle reported before (positioning issues of the shadow of all letters) which is fixed with attachment 15497 [details].

This should be a high priority since it looks pretty broken right now!
Comment 27 Derk-Jan Hartman 2014-07-11 21:05:28 UTC
@PRO, i'm also seeing what you see in your: "Screenshot - vector-bar completely disordered"

I'm mostly seeing it if I zoom the page out a bit. Probably has to do with scaling and rounding... ?
Comment 28 PRO 2014-07-12 21:11:03 UTC
@Derk-Jan Hartman, yes me too, it is the browser zoom level, but only in Chrome and only sporadically. (If I reset the zoom level, the effect is gone immediately.)

I can't say it is an SVG bug, instead of a Chrome bug with CSS sprite sheets (maybe only with SVG).
Comment 29 PRO 2014-07-12 22:27:43 UTC
But for sure, I would upload tomorrow another fixed version, with all group transform attributes removed (W3C valid uncompressed and xml well formed).
Comment 30 Gerrit Notification Bot 2014-08-01 21:09:28 UTC
Change 151203 had a related patch set uploaded by Paladox:
Update WikiEditor

https://gerrit.wikimedia.org/r/151203
Comment 31 Gerrit Notification Bot 2014-08-04 11:11:20 UTC
Change 151611 had a related patch set uploaded by Paladox:
WikiEditor: Fix issue with SVG

https://gerrit.wikimedia.org/r/151611
Comment 32 Gerrit Notification Bot 2014-08-04 16:11:53 UTC
Change 151203 abandoned by Paladox:
Update WikiEditor

Reason:
Ok.

Please see Ic0c261f66ee882efeb07ab77ee2a3a5533093c4f for the fix for svg images. and I2a223e202aa488f0e83e663e490ee009da686687 for converting .css to .less.

https://gerrit.wikimedia.org/r/151203
Comment 33 Gerrit Notification Bot 2014-08-07 15:48:56 UTC
Change 151611 had a related patch set uploaded by Paladox:
WikiEditor: Fix issue with SVG

https://gerrit.wikimedia.org/r/151611
Comment 34 paladox2015 2014-08-29 11:24:44 UTC
Comment on attachment 15497 [details]
button-sprite.svg fixed

Hi there is a problem with this image I uploaded to gerrit and this is what user krinkle said.


format-B is now missing a doctype. And the sprite completely changed. It should probably only have the bold part replaced.

I mean xml header, not doctype.
Comment 35 paladox2015 2014-09-05 08:49:26 UTC
Hi I have fixed the problem I also removed the shadow from the rest of the svg icons.
Comment 36 Bartosz Dziewoński 2014-09-11 17:17:25 UTC
This bug seems to be tracking at least two or maybe three completely distinct issues, one of which has just been reported as bug 70679.

Can anybody summarize what is going on and what's up with all the various patches and attachments? Derk, you're marked as assignee – are you still working on it?
Comment 37 George Orwell III 2014-09-14 03:52:12 UTC
(In reply to Bartosz Dziewoński from comment #36)
> 
> Can anybody summarize what is going on and what's up with all the various
> patches and attachments? . . .
> 

I'll second that!

When it comes to such matters involving images/icons on a toolbar, it seems [to me] the best way to whittle down the issues is to actually have them render in semi-real world instances and have folks report back their findings.

Can't we merge ....

https://gerrit.wikimedia.org/r/151611

and 

https://gerrit.wikimedia.org/r/151616

... so that they at least come up live & working on test2.wikipedia.org in the immediate near future (i.e. today)?

That should get us a decent pool of user responses before next week's scheduled core update to see if those patches resolve anything (or not) bug-wise and still give us enough of a buffer to further refine or revert as needed before that scheduled update rolls-out as well.

The way things stand now, with half a dozen patch sets awaiting attention or implementation for weeks if not months already, we sure don't seem to be resolving much.
Comment 38 paladox2015 2014-09-14 20:37:15 UTC
Hi I have already done a patch that does that. https://gerrit.wikimedia.org/r/#/c/151203/ Someone commit and said to split them into two patches.
Comment 39 Gerrit Notification Bot 2014-09-14 21:03:28 UTC
Change 151203 restored by Paladox:
Update WikiEditor

https://gerrit.wikimedia.org/r/151203
Comment 40 Gerrit Notification Bot 2014-09-14 21:08:35 UTC
Change 151203 had a related patch set uploaded by Paladox:
WikiEditor: Convert .css to .less and also fixes svg issues.

https://gerrit.wikimedia.org/r/151203
Comment 41 Gerrit Notification Bot 2014-09-14 21:23:28 UTC
Change 151203 had a related patch set uploaded by Paladox:
WikiEditor: Convert .css to .less and also fixes svg issues.

https://gerrit.wikimedia.org/r/151203
Comment 42 paladox2015 2014-09-14 21:27:29 UTC
Hi I have now re opended the patch but it says 

Merge Failed.

This change was unable to be automatically merged with the current state of the repository. Please rebase your change and upload a new patchset.
Comment 43 Gerrit Notification Bot 2014-09-15 10:49:42 UTC
Change 160421 had a related patch set uploaded by Paladox:
WikiEditor: Convert .css to .less and also fixes svg issues.

https://gerrit.wikimedia.org/r/160421
Comment 44 Gerrit Notification Bot 2014-09-15 10:50:25 UTC
Change 160421 abandoned by Paladox:
WikiEditor: Convert .css to .less and also fixes svg issues.

https://gerrit.wikimedia.org/r/160421
Comment 45 Gerrit Notification Bot 2014-09-15 10:56:29 UTC
Change 151203 had a related patch set uploaded by Paladox:
WikiEditor: Convert .css to .less and also fixes svg issues.

https://gerrit.wikimedia.org/r/151203
Comment 46 Andre Klapper 2014-09-15 11:36:42 UTC
(In reply to paladox2015 from comment #42)
> Merge Failed.
> This change was unable to be automatically merged with the current state of
> the repository. Please rebase your change and upload a new patchset.

So please fix that? :)
Comment 47 paladox2015 2014-09-15 11:54:32 UTC
Hi I have fixed it.
Comment 48 paladox2015 2014-10-06 19:54:00 UTC
Hi I have now fix it.
Comment 49 Derk-Jan Hartman 2014-10-26 11:35:42 UTC
I can't seem to get a clear, concise and accurate description from the patch submitters on these problems. Problems also remain in the latest versions of the submitted patches with strange offset problems in the sprite when the user zooms in or out.

Since there are clearly problems in the original patch that was converting the toolbar resources to SVG, and since it seems that the patch submitters cannot get them corrected, I think that there is only one solution left. Revert the original SVG patch and wait till someone with SVG skills AND gerrit experience pays attention to this problem.
Comment 50 paladox2015 2014-10-26 11:39:03 UTC
Hi i have got it right i have added the images that were here to the patch and also added a note on who created the image i also followed fomafix instructions and so the patch should be correct now.
Comment 51 Gerrit Notification Bot 2014-10-26 11:41:30 UTC
Change 168821 had a related patch set uploaded by TheDJ:
Revert "Add SVG versions of toolbar icons"

https://gerrit.wikimedia.org/r/168821
Comment 52 George Orwell III 2014-10-26 12:01:33 UTC
(In reply to paladox2015 from comment #50)
> Hi i have got it right i have added the images that were here to the patch
> and also added a note on who created the image i also followed fomafix
> instructions and so the patch should be correct now.

https://gerrit.wikimedia.org/r/151203

... followed by ...

https://gerrit.wikimedia.org/r/151611

... followed by ...

https://gerrit.wikimedia.org/r/151616

... is the way I thought this was all going to play out too.
Comment 53 Derk-Jan Hartman 2014-10-26 12:03:23 UTC
Paladox, I'm not sure how I need to explain this to you and it hope it doesn't come across as rude, because it's not intended to be that way, but this whole stuff is simply not reviewable right now.

If I go trough a patchset, read the commit message and the diff, test it in my browsers and NOT have all my questions answered. It cannot be merged.

Things I should not have to do are:
1: Go trough 50 patchset rebases
2: Go trough 15 comments interspersed with these rebases, for finding answers that should be in the commit message, if they affect the review.
3: Pick and choose between 3 patchsets, for one change.


This Bug ticket is about converting the Original PNGs to SVG.
1: M4tx did some nice work
2: This work was not pixel perfect with the original PNGs, but that was fine
3: I approved the SVG change on that basis
4: It turned out that there were problems with the SVGs in production. This should have been cause for reverting the change.
5: Instead of reverting I gave people a chance to fix it, Pro, you etc.
6: You currently are the one making those proposals for changes.
7: You can't answer the questions in a way that gives enough people confidence to approve the changes. (either by lack of experience, by lack of your mastery of the language, of not actually being able to prove it all works as expected etc.)
8: This means the patches cannot be merged, and that means that it's about time to bite the bullet, and I need to admit that I should have reversed the original commit back then when it became clear there were some problems with the original change to SVG.
Comment 54 paladox2015 2014-10-26 12:06:36 UTC
Ok I have tested all the patches on my site. here is link to show how it is working. http://en.random-wikisaur.tk
Comment 55 Derk-Jan Hartman 2014-10-26 12:10:42 UTC
"is the way I thought this was all going to play out too." There are no dependencies on the tickets, there are no comments on the commit message that indicate this.

That first link already mixes three issues in a way that I'm not confident anymore that something unexpected is mixed into it as well.

Separation of concerns (in bugzilla tickets, commit messages etc), be explicit about what depends on what, proof that stuff works (as intended) and you will convince a core reviewer to merge the code. That has not happened so far.
Comment 56 paladox2015 2014-10-26 12:12:21 UTC
I have created 3 commits one has all of it in it and 2nd patch has .less in it and third patch has the fixes for svg.
Comment 57 Derk-Jan Hartman 2014-10-26 12:15:10 UTC
Created attachment 16901 [details]
Alignment trouble

Well I should be able to see that it works in all situation, not just in yours, and as this screenshot of a zoomed Chrome shows, it simply still doesn't work... unfortunately.
Comment 58 George Orwell III 2014-10-26 12:20:05 UTC
(In reply to Derk-Jan Hartman from comment #55)
> "is the way I thought this was all going to play out too." There are no
> dependencies on the tickets, there are no comments on the commit message
> that indicate this.
> 
Granted - and you are absolutely correct to take that position imo as well. I merely had the small benefit of following this exercise 20+ revisions ago is all. Don't read into it any further than that.

(In reply to Derk-Jan Hartman from comment #53)
> 4: It turned out that there were problems with the SVGs in production. This
> should have been cause for reverting the change.

Bingo. Regression seems to be a dirty word around here however.
Comment 59 paladox2015 2014-10-26 12:27:25 UTC
That site also includes .less.
Comment 60 paladox2015 2014-10-26 12:33:48 UTC
This one only includes the fixes for svg http://simple-random-wikisaur.tk/index.php?title=Main_Page&action=edit
Comment 61 Krinkle 2014-11-04 16:36:29 UTC
Okay, this is getting ridiculous. M4tx made a commit that added SVG files (a low priority enhancement). The commit accidentally mutilated the "B" icon (visible regression) and was merged by TheDJ.

See
https://gerrit.wikimedia.org/r/#/c/97454/
http://i.imgur.com/mBZm28W.png


I don't know what everyone is doing, but please just fix the icon. All this other stuff is unrelated to this bug. If there's no simple commit that fixes the icon soon I'll recommend reverting the SVGs for the time being and re-submitting that change as a draft blocked on restoring the B icon.
Comment 62 paladox2015 2014-11-04 16:39:04 UTC
Hi I have one of the images that were fixed by a user here and fixed the other ones to. the patch is at https://gerrit.wikimedia.org/r/#/c/151611/
Comment 63 Gerrit Notification Bot 2014-11-04 22:21:33 UTC
Change 168821 merged by jenkins-bot:
Revert "Add SVG versions of toolbar icons"

https://gerrit.wikimedia.org/r/168821
Comment 64 Jared Zimmerman (WMF) 2014-11-05 00:03:23 UTC
part of me is still wondering why we aren't using the icons that are in use in VisualEditor currently, any rational?
Comment 65 James Forrester 2014-11-05 00:04:19 UTC
Using the OOUI icons means using OOUI. Porting the wikitext editor to OOUI is a big piece of work.
Comment 66 Jared Zimmerman (WMF) 2014-11-05 00:06:13 UTC
No, i just mean the same SVG assets. for bold, italic, image, link, etc. Not the code behind an OOUI control
Comment 67 James Forrester 2014-11-05 00:07:18 UTC
(In reply to Jared Zimmerman (WMF) from comment #66)
> No, i just mean the same SVG assets. for bold, italic, image, link, etc. Not
> the code behind an OOUI control

That's fundamentally incompatible with how MediaWiki is built. Reaching in to the code base to pull out assets will immediately fail basic code review.
Comment 68 Jared Zimmerman (WMF) 2014-11-05 01:07:43 UTC
Based on talking to James and Trevor, we can provide the icons that will improve consistency dramatically, we're targeting end of day tomorrow Nov 5 to have all the assets ready to integrate. Thanks for a moment of patience.
Comment 69 Gerrit Notification Bot 2014-11-05 20:31:44 UTC
Change 151611 had a related patch set uploaded by Paladox:
WikiEditor: Fix issue with SVG

https://gerrit.wikimedia.org/r/151611
Comment 70 Gerrit Notification Bot 2014-11-17 11:45:01 UTC
Change 151611 had a related patch set uploaded by Paladox:
WikiEditor: Re add SVG

https://gerrit.wikimedia.org/r/151611

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links