• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wikimedia / svgtranslate
77%
master: 72%

Build:
Build:
LAST BUILD BRANCH: upload-urls-T224265
DEFAULT BRANCH: master
Repo Added 26 Oct 2018 08:49PM UTC
Files 18
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH rsvg-rendering
branch: rsvg-rendering
CHANGE BRANCH
x
Reset
  • rsvg-rendering
  • coveralls-2
  • docker-webpack
  • fallback
  • fontstack
  • image-preview-T207203
  • lang-switching-T207709
  • letter-spacing-T212293
  • lighttpd_accesslog
  • master
  • partial-translations-T210872
  • remaining-updates-T212270
  • svg-warnings
  • ui-fixes
  • ui-fixes-T206712
  • update-dependencies
  • update_dependencies
  • url-normalization
  • zoom-and-pan

pending completion
355

push

travis-ci

samwilson
Switch to PNG rendering for image display

This patch changes the API to return PNG images instead of SVG,
so that we can specify the language that is used for the rendering.
To do this, we pass the name of the cached SVG file to a call to
the external rsvg-convert command, which returns the PNG to stdout.
This is served in the usual way.

This change also breaks the API URLs by adding in a 'lang' URL
parameter. This is required because we may not be rendering to the
tool user's current interface language.

When a POST request is given with new translations, the resulting
changed SVG file has to be written to the filesystem so that
rsvg-convert can access it. This is done by creating a new unique
temp file in the same images' cache directory, so that the files
thus created can be cleaned up by the existing clearing
mechanism.

The Docker image we're using doesn't (until T151656 is resolved)
have rsvg-convert installed, so this patch also adds this to the
dockerstart script.

Bug: https://phabricator.wikimedia.org/T211637

461 of 602 relevant lines covered (76.58%)

3.22 hits per line

Relevant lines Covered
Build:
Build:
602 RELEVANT LINES 461 COVERED LINES
3.22 HITS PER LINE
Source Files on rsvg-rendering
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
355 rsvg-rendering Switch to PNG rendering for image display This patch changes the API to return PNG images instead of SVG, so that we can specify the language that is used for the rendering. To do this, we pass the name of the cached SVG file to a call to the ext... push 18 Dec 2018 01:07AM UTC samwilson travis-ci pending completion  
356 rsvg-rendering Switch to PNG rendering for image display This patch changes the API to return PNG images instead of SVG, so that we can specify the language that is used for the rendering. To do this, we pass the name of the cached SVG file to a call to the ext... Pull #38 18 Dec 2018 01:07AM UTC web-flow travis-ci pending completion  
353 rsvg-rendering Switch to PNG rendering for image display This patch changes the API to return PNG images instead of SVG, so that we can specify the language that is used for the rendering. To do this, we pass the name of the cached SVG file to a call to the ext... push 18 Dec 2018 01:06AM UTC samwilson travis-ci-com pending completion  
354 rsvg-rendering Switch to PNG rendering for image display This patch changes the API to return PNG images instead of SVG, so that we can specify the language that is used for the rendering. To do this, we pass the name of the cached SVG file to a call to the ext... Pull #38 18 Dec 2018 01:06AM UTC web-flow travis-ci-com pending completion  
354 rsvg-rendering Switch to PNG rendering for image display This patch changes the API to return PNG images instead of SVG, so that we can specify the language that is used for the rendering. To do this, we pass the name of the cached SVG file to a call to the ext... Pull #38 17 Dec 2018 10:06PM UTC web-flow travis-ci pending completion  
353 rsvg-rendering Switch to PNG rendering for image display This patch changes the API to return PNG images instead of SVG, so that we can specify the language that is used for the rendering. To do this, we pass the name of the cached SVG file to a call to the ext... push 17 Dec 2018 10:05PM UTC samwilson travis-ci pending completion  
352 rsvg-rendering Switch to PNG rendering for image display This patch changes the API to return PNG images instead of SVG, so that we can specify the language that is used for the rendering. To do this, we pass the name of the cached SVG file to a call to the ext... Pull #38 17 Dec 2018 09:52PM UTC web-flow travis-ci-com pending completion  
351 rsvg-rendering Switch to PNG rendering for image display This patch changes the API to return PNG images instead of SVG, so that we can specify the language that is used for the rendering. To do this, we pass the name of the cached SVG file to a call to the ext... push 17 Dec 2018 09:52PM UTC samwilson travis-ci-com pending completion  
350 rsvg-rendering Switch to PNG rendering for image display This patch changes the API to return PNG images instead of SVG, so that we can specify the language that is used for the rendering. To do this, we pass the name of the cached SVG file to a call to the ext... Pull #38 17 Dec 2018 08:37PM UTC web-flow travis-ci-com pending completion  
349 rsvg-rendering Switch to PNG rendering for image display This patch changes the API to return PNG images instead of SVG, so that we can specify the language that is used for the rendering. To do this, we pass the name of the cached SVG file to a call to the ext... push 17 Dec 2018 08:37PM UTC samwilson travis-ci-com pending completion  
See All Builds (296)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc