File:China flag missing stars.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(1,172 × 597 pixels, file size: 91 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description

File:Flag of the People's Republic of China.svg shown without the small stars on https://curran.github.io/screencasts/introToAngular/exampleViewer/#/27

Changing the width in Firebug shows the following:

The small stars are not shown for widths at <155px, and the big star is not shown for widths at <52px

This is a peculiarity of the current version of this flag (https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg).

When the href value is replaced by the version before (https://upload.wikimedia.org/wikipedia/commons/archive/f/fa/20120522203651!Flag_of_the_People%27s_Republic_of_China.svg), the problem disappears.

Note: To link to the SVG file is a bad idea anyway. To get a 100px thumbnail this would be the correct link: https://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Flag_of_the_People%27s_Republic_of_China.svg/100px-Flag_of_the_People%27s_Republic_of_China.svg.png.

Addendum to Note: Within Wikimedia projects and including the various Wikipedias, it's okay to use a wikified link in code to display an image, like this — [[File:filename.svg]] — as Wikimedia servers create PNG thumbnails for each requested SVG image that is not used in the original form, which is almost always.

There are additional caveats wrt directly linking to SVG images:

  • Not all browsers are able to render SVG images properly, but most all are now able to display PNG files; and
  • Commons policy generally discourages hotlinking (reasons at link), which is why an own-served SVG image with a PNG fallback similar to the Wikimedia implementation is a better solution.
Source Own work
Author
Watchduck
You can name the author as "T. Piesk", "Tilman Piesk" or "Watchduck".

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Trademarked This work includes material that may be protected as a trademark in some jurisdictions. If you want to use it, you have to ensure that you have the legal right to do so and that you do not infringe any trademark rights. See our general disclaimer.
This tag does not indicate the copyright status of the attached work. A normal copyright tag is still required. See Commons:Licensing.
Annotations
InfoField
This image is annotated: View the annotations at Commons

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current11:30, 22 October 2014Thumbnail for version as of 11:30, 22 October 20141,172 × 597 (91 KB)Watchduck (talk | contribs){{Information |Description ={{en|1=File:Flag of the People's Republic of China.svg shown without the small stars on http://curran.github.io/screencasts/introToAngular/exampleViewer/#/27}} |Source ={{own}} |Author ={{Mate2code}}...

The following page uses this file:

Metadata