Page MenuHomePhabricator

Use transparent images for hiero
Closed, ResolvedPublic

Description

Transparent images looks better, when using colored background.

It is possible to change the background of all images to transparent? Thanks.


Version: unspecified
Severity: enhancement

Details

Reference
bz31736

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:50 PM
bzimport added a project: WikiHiero.
bzimport set Reference to bz31736.

Do we have existing use cases where existing articles rely on them to have white background?

(In reply to comment #1)

Do we have existing use cases where existing articles rely on them to have
white background?

Unknown. I don't think this is known. We could change it and wait for people to complain. Alternatively, I'm pinging Brandon in case he has some input.

aoineko wrote:

All hieroglyphs images are under wikihiero/img directory.
If someone can adding transparency using a script, you are welcome.

michael.billington wrote:

Alternate wikihiero images with (more or less) transparent backgrounds

Script to remove white background from behind hieroglyphs:

#!/bin/bash
for f in img/*
do
echo "Editing $f .. "
convert $f -background none -fuzz 10% -transparent white -flatten $f
done

-Michael Billington

attachment wikihiero-img-transparent.tar.gz ignored as obsolete

Hello Michael Billington, can you provide your attachment as a gerrit patch set?

See http://www.mediawiki.org/wiki/Gerrit/Getting_started for a how do.

Thanks.

Related URL: https://gerrit.wikimedia.org/r/63363 (Gerrit Change Id70fa296d30210364ce9e307d5c51a3ab4875590)

Created attachment 12298
an image of a hieroglyph on grey background

This is how the suggested image looks on a grey background.

attachment Hiero - livowiki 2013-05-12 15-09-19.png ignored as obsolete

michael.billington wrote:

The images aren't great quality, so editing them is a bit of a hack to begin with.

Some other ideas:

  • Just extracting the black-ness, then dropping it on a transparent background. There would be no artefacts, but the pixels would be even more visible than they are currently.
  • Re-generating them all from a free font (such as Aegyptus as found in Debian's ttf-ancient-fonts) on a transparent background. This is probably preferable in the long-run.

I've redone this doing the transparency properly; see https://gerrit.wikimedia.org/r/#/c/63363/ in gerrit.

Change 63363 merged by jenkins-bot:
Change all glyphs to have a transparent background

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