Page MenuHomeMiraheze

Visual editor template SVG issue
Closed, ResolvedPublic


Steps to reproduce:

  1. Go to my user page on miraheze meta, at the top of the page you should see the word working and a small image to its left. That's actually a template
  2. Click edit
  3. You'll see that image suddenly enlarged when you're in VE edit mode
  4. Optional: Go to WP sandbox, try to insert the "Working" template and you'll see that the enlargement problem doesn't exist there while editing

Revisions and Commits

Event Timeline

Calnation created this object in space S1 Public.
Void moved this task from Backlog to Bugs on the MediaWiki board.

I'd like to request that this ticket's priority is elevated. I do all my editing using the visual editor and currently, I'm using many templates from en:WP and this bug makes my task 10x harder. To give you a glimpse of what I'm facing, please see here how a couple of small icons can make editing a difficult task.

Trevor raised the priority of this task from Normal to High.Feb 14 2017, 00:19
Trevor subscribed.

I'd like to request that this ticket's priority is elevated.

Done. I understand your frustration. Hopefully the bug reports like this one will be given attention as soon as possible.

Trouble is, this might be an Upstream issue (which could take months to get a solid response on).

@Void How so? Bug doesn't appear at all on en:WP

I said might. I rarely touch the visual editor.

FYI, I just reported T1437: Visual editor Graph issue
Not sure if it's connected or not.

Reception123 lowered the priority of this task from High to Normal.Feb 15 2017, 15:54
Reception123 added a project: Upstream.

@Calnation Void is probably right about Upstream. The thing is Wikipedia is running on a the Beta version of Mediawiki (1.29) and therefore a different version of VisualEditor (beta 1.29). Miraheze only upgrades when Mediawiki versions are released, so this issue will probably only be fixed then.
Tagging as normal due to upstream.

Based on my comment above, I request Upstream tag be removed. I urge more investigation next time before that tag is used anywhere else.

I've looked into this and I am sure it is upstream.

When editing the images in VisualEditor on Miraheze - it says the defined size is 150px. When viewing it on Vikidia, it says the defined image size is 20px. The wikitext is identical however. When I change our size to 20px, it wants to use 20x20px instead of 20px in the wikitext which is still valid.

I believe this is an issue in parsoid's rendering since I've never seen this issue until now even on Miraheze.

John added projects: Services, Technology-Team.

I'll find some time and try and grab some time with a parsoid developer and see if we can narrow this issue down.

Dropping parsoid as this is no longer the issue.

The issue is Commons is returning 150px as the height of the image so this is still an upstream issue currently until we can be sure it's on our side and I'll try my best to resolve this as soon as.

John removed John as the assignee of this task.Feb 23 2017, 17:44

Now dropping my assign. I've had a look and I can't see anything. More so this is MediaWiki which is outside of my area of expertise so I'm not the most useful person to investigate this.

Amanda moved this task from Backlog to Deployed Extension Bugs on the Extensions board.
Amanda subscribed.

This is specifically a bug with an extension rather than MediaWiki as a whole

No, this is 100% MediaWiki API.

@John I will talk to Wikimedia collegues I have, and i will get back to you :)

John changed the task status from Open to Stalled.Aug 14 2017, 13:46
John lowered the priority of this task from Normal to Low.

I will file an upstream task, keep this one open as I will update here aswell.

Upstream says it may be parsoid, so they are investigating now.

Upstream says: See my response from above. The MediaWiki API at is telling Parsoid that the thumbwidth and thumbheight should be 150px.

My guess is that you don't have whatever software is necessary to scale an SVG installed on that server, so it's just returning the image size, even though it has asked for 20px.

Nope, all that is correct and we can (have and do) scale SVGs.

@John Telling upstream, will update

upstream says:
Ok, so I can reproduce this locally now.

It's the result of having NativeSvgHandler enabled.

This issue is still a problem, I think. I still get very enlarged vectors when they are put in templates on my personal wiki. It is kind of a pain but I get by. Any other news on this? @Zppix

Ibidem @CnocBride, ¿hay novedades?

We should uninstall NativeSvgHandler seeing as that's the problem.

We should uninstall NativeSvgHandler seeing as that's the problem.

Paladox added a commit: Unknown Object (Diffusion Commit).Dec 8 2018, 15:46