Template talk:BadJPEG

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

En Version[edit]

The english wikipedia version of this looks nicer. Additionaly, this template needs translations so people who don't speak english know what to do. -Aknorals 01:32, 14 August 2006 (UTC)[reply]

Icon[edit]

makes the point quite clear what's the template is all about, but I don't have sufficient rights to edit the template. Matt (talk) 19:40, 21 August 2009 (UTC)[reply]

✓ Done (Next time, use {{Editprotected}} to request a change to a protected page.) --Mormegil (talk) 10:34, 23 August 2009 (UTC)[reply]

What do you think about this new icon? Its more similar to others and uniformity in most browsers in contrast to the current image. (Or maybe implement both images?) --Perhelion (talk) 15:30, 25 June 2010 (UTC)[reply]

I kind of like the current one, but I'm no designer. Might want to ask in a wider forum. Dcoetzee (talk) 15:34, 25 June 2010 (UTC)[reply]
I really don't like using both images as below though... Dcoetzee (talk)
Ok, another idea: the forbidden pictogram with the current image?! --Perhelion (talk) 07:23, 26 June 2010 (UTC)[reply]

Examples[edit]

New text partial from current en:Template:BadJPEG

<table class="messagebox plainlinks layouttemplate català | čeština | Deutsch | eesti | English | español | français | italiano | magyar | Nederlands | Plattdüütsch | polski | português | português do Brasil | Scots | sicilianu | suomi | svenska | беларуская (тарашкевіца)‎ | македонски | русский | українська | 日本語 | 中文 | 中文(简体)‎ | 中文(繁體)‎ | עברית | العربية | فارسی | +/− " lang="català | čeština | Deutsch | eesti | English | español | français | italiano | magyar | Nederlands | Plattdüütsch | polski | português | português do Brasil | Scots | sicilianu | suomi | svenska | беларуская (тарашкевіца)‎ | македонски | русский | українська | 日本語 | 中文 | 中文(简体)‎ | 中文(繁體)‎ | עברית | العربية | فارسی | +/−" dir="ltr" style="margin:2px auto;width:90%;border:2px solid #f4c430;background:#ffe;color:#222;border-left-width:8px;border-collapse:collapse;">

This image was (or all images in this article or category were) uploaded in the JPEG format even though it consists of non-photographic data.
The information it contains could be stored more efficiently or more accurately in the PNG format or SVG format.
If possible, please upload a PNG or SVG version of this image without compression artifacts, derived from a non-JPEG source (or with existing artifacts removed) and with transparency where appropriate. After doing so, please replace all instances of the JPEG version throughout Wikipedia, tag the JPEG version with {{Superseded|NewImage.ext}}, and remove this tag. For more information, see Commons:Preparing images for upload.

{{editprotected}}

— Preceding unsigned comment added by Perhelion (talk • contribs) 18:00, 2010 June 25 (UTC)

If the template was used only on images as bad as the sample (File:Badjpeg.jpg), this might be a good idea, but many images in Category:Images with inappropriate JPEG compression aren't that bad and can easily live without all the overhead of changing them. In their context, the suggested addition of a "no-jpg" logo may easily be misunderstood.

As we had some major problems with this type of conversion in the past, I'm not really convinced that the suggested update doesn't bring that back. -- User:Docu at 09:28, 26 June 2010 (UTC)[reply]

 Not done Agreed with Docu, the “JPEGs are forbidden” pictogram is not a good idea. If you can convince some other people (and an admin to make the change), then maybe. But until then, I’ve removed the editprotected request nobody wanted to fulfill. --Mormegil (talk) 13:11, 24 July 2010 (UTC)[reply]

Differences in linguistic versions...[edit]

I think we may have a problem. The:

  • de
  • sp
  • fr
  • pt
  • pt-br
  • ru

verions are all adding non existant procedures that does not exist in the english version. That jpeg image should be replaced and listed to Deletion Request, which is a bit different from what the en documentation say. (Please note that the en documentation is not the en version.) Esby (talk) 13:36, 22 January 2011 (UTC) I think the english version changed but not their counterparts... Esby (talk) 13:40, 22 January 2011 (UTC)[reply]

Because: The "real" en version ("tag the JPEG version with {{obsolete|NewImage.ext}}, and remove this tag. For more information, see Wikipedia:Preparing images for upload.") says (nearly) the same as the other language here and the Commons police says here ("Once done, mark the old image with a {{superseded}} tag.") I mean that sentence should also stay here, with {{Superseded}} (what is redirected from obsolete) instead {{delete}}!? --Perhelion (talk) 18:56, 22 January 2011 (UTC)[reply]
✓ Done More info added, more specific, corresponding to English Template + policy link in doc. --Perhelion (talk) 17:19, 24 January 2011 (UTC)[reply]

I'm not sure whether the (usage) instructions, are here or in the template self? Seems a bit unconventional, but it can also not care. -- πϵρᶥήλίο»℗› 17:48, 12 July 2011 (UTC)[reply]

Edit request to add mistagged images to category[edit]

{{Edit protected}} Please add the following text immediately after {{#ifeq:{{NAMESPACE}}|File|:

{{#switch:{{lc:{{Str right|{{PAGENAME}}|{{#expr:{{str len|{{PAGENAME}}}}-4}}}}}}|.jpg|jpeg=|#default=[[Category:Files incorrectly marked as BadJPEG]]}}
✓ Done Rd232 (talk) 23:13, 15 October 2012 (UTC)[reply]
Hum, there are some jpegs in Category:Files incorrectly marked as BadJPEG - maybe because the names are too long?? Rd232 (talk) 23:15, 15 October 2012 (UTC)[reply]

Odd; looks like the template maxes out at 100 characters. Maybe I could work on a new piece of logic. Magog the Ogre (talk) (contribs) 01:22, 16 October 2012 (UTC)[reply]

{{Edit protected}} OK, attempt #2:

{{#switch:{{lc:{{Str sub very long|{{PAGENAME}}|{{#expr:{{str len|{{PAGENAME}}}}-4}}}|4}}}}|.jpg|jpeg=|#default=[[Category:Files incorrectly marked as BadJPEG]]}}

Magog the Ogre (talk) (contribs) 02:06, 16 October 2012 (UTC)[reply]

✓ Done Rd232 (talk) 10:38, 16 October 2012 (UTC)[reply]
Is this really necessary? Do we explain the user to stupid? Another waste, where's the ratio? -- πϵρήλιο 10:12, 16 October 2012 (UTC)[reply]
The contents of Category:Files incorrectly marked as BadJPEG when I first did the edit (c 30 files AFAIR) gives some answer... as to whether it's worth the server cost of doing it on every BadJPEG - who can say? Rd232 (talk) 10:37, 16 October 2012 (UTC)[reply]

OK, well I goofed up on the above code (an extra } after -4). Anyway, I already got all the files, so if you want to undo it, feel free. Magog the Ogre (talk) (contribs) 12:17, 16 October 2012 (UTC)[reply]

Ok then the ratio was, ~3842 : 30, what is under 0,8%. Then theoretically we no longer need this!? -- πϵρήλιο 12:33, 16 October 2012 (UTC)[reply]
OK, removed. I guess this is something that could be re-added temporarily once in a while. At least we know the problems are not widespread. Rd232 (talk) 22:36, 16 October 2012 (UTC)[reply]

Redundancy[edit]

{{Edit request}} The appositive phrase "However," at the beginning of the second sentence of the template, should be removed or possibly replaced with something like "As such,". TortoiseWrath (talk) 01:51, 18 February 2013 (UTC)[reply]

The phrase is transcluded from an unprotected page, Template:BadJPEG/en. Could you edit it by yourself? Being a nonnative of English, I'm hesitant to do it. --whym (talk) 11:13, 24 February 2013 (UTC)[reply]
It is done. I hadn't seen that that page was not protected. Thank you. TortoiseWrath (talk) 16:47, 3 March 2013 (UTC)[reply]

Please replace File:Wappen Weiz.png[edit]

{{Edit request}} This page is protected while posting this message. Please replace File:Wappen Weiz.png with File:AUT Weiz COA.png because File renamed: File renaming criterion #4: To harmonize the file names of a set of images: so that only one part of all names differs. Thank you. Message added by global replace -- CAPTAIN RAJU(T) 19:37, 23 August 2017 (UTC)[reply]

 Not done The file isn't used anymore in this template. --jdx Re: 22:50, 24 August 2017 (UTC)[reply]

This template is 14 years out of date. GIF also does not have compression artifacts, and has been out of patent since 2003[edit]

{{Edit request}}

GIF does not have compression artifacts unless there are color gradients. Please add Graphics Interchange Format (GIF) to the template wording:

This information could be stored more efficiently or accurately in these formats: PNG or SVG or GIF (if limited colors without color gradients).

See: en:Lossless compression#Historical legal issues. See article quote below with emphasis added:

Historical legal issues. Many of these methods are implemented in open-source and proprietary tools, particularly LZW and its variants. Some algorithms are patented in the United States and other countries and their legal usage requires licensing by the patent holder. Because of patents on certain kinds of LZW compression, and in particular licensing practices by patent holder Unisys that many developers considered abusive, some open source proponents encouraged people to avoid using the Graphics Interchange Format (GIF) for compressing still image files in favor of Portable Network Graphics (PNG), which combines the LZ77-based deflate algorithm with a selection of domain-specific prediction filters. However, the patents on LZW expired on June 20, 2003.

For charts and other non-photographic images GIF uses fewer kilobytes than PNG due to its limitation on the number of colors, and due to the simplicity of creating low-kilobyte GIF images versus low-kilobyte PNG images. Charts don't need a lot of colors. And in the real world people favor faster loading web pages versus more unnecessary colors in charts. PNG uses way too many kilobytes in many cases, especially if there are multiple PNG full-palette chart images on a page. Few people know how to create low-kilobyte PNG chart images with limited color palettes. It is built into GIF. --Timeshifter (talk) 05:13, 23 November 2017 (UTC)[reply]

 Not done @Timeshifter: , GIF is very outdated, so it is also not recommendable. Please read COM:Filetypes #GIF -- User: Perhelion 19:30, 29 November 2017 (UTC)[reply]
GIF is still better than PNG if the graphic has no transparency, and is 256 colors or less. Because it is much easier to use. COM:Filetypes #GIF does not say not to use GIF. So please change the template, or crappy jpeg images will remain on the site, and continue to be uploaded to the site, due to the difficulty of using PNG.
I started a discussion here:
Commons talk:File types#GIF is fine for images with 256 colors or less, and no transparency
--Timeshifter (talk) 18:19, 30 November 2017 (UTC)[reply]
 Not done no consensus to do the change here or at Commons talk:File types#GIF is fine for images with 256 colors or less, and no transparency. --Jarekt (talk) 19:50, 9 January 2018 (UTC)[reply]

Suggest we don't remove template after new image upload[edit]

Currently the text of the template says

please upload a PNG or SVG version of this image [...] After doing so, please [...] remove this tag.

I think it would be good to have the warning about the inappropriate jpeg compression remain in place even if a new version is uploaded, to inform people of the proper use of image formats, seems there is a need. Perhaps we could add some parameter so it wouldn't ask for another upload if there is one replacement already or in case this proposition would cause issues with categorization. --Palosirkka (talk) 11:33, 30 January 2018 (UTC)[reply]

Support for cat=[edit]

{{edit request}} {{Convert to SVG}} wants to avoid Commons:OVERCAT and passes an argument to cat=, but nobody cared to implement the parameter here.

Replace [[Category:Images with inappropriate JPEG compression|{{PAGENAME}}]] with

{{{cat|[[Category:Images with inappropriate JPEG compression]]}}}

--Incnis Mrsi (talk) 18:34, 1 April 2019 (UTC)[reply]

@Incnis Mrsi: ✓ Done, but I kept the "|{{PAGENAME}}" part.   — Jeff G. please ping or talk to me 04:47, 10 July 2019 (UTC)[reply]

Parameter 1[edit]

@Sarang: Please document it.   — Jeff G. please ping or talk to me 16:41, 12 August 2019 (UTC)[reply]

I'll do it soon; at the moment I am thinking about another descriptive expansion. -- sarang사랑 06:03, 13 August 2019 (UTC)[reply]

Terribly named template[edit]

@Ixfd64: here you go.
  1. At a glance, the name would suggest that the JPEG is broken, but it means nothing of the sort.
  2. The name also suggests that the file is somehow a liability. A JPEG for this may not be ideal, but it beats the hell out of nothing, which is what we would typically otherwise have, since these usually come from third-party sources. - Jmabel ! talk 17:23, 24 June 2020 (UTC)[reply]
Yes it is a bad name. --Jarekt (talk) 19:05, 24 June 2020 (UTC)[reply]
Semi-serious suggestion: we should rename it to {{Needs more JPEG}}. Ixfd64 (talk) 17:33, 2 September 2020 (UTC)[reply]

This page is protected while posting this message. Please replace File:Logo Karrierewerkstatt JPG.jpg with File:Logo Karrierewerkstatt.jpg because File renamed: Criterion 6 Thank you. Message added by global replace -- Jonteemil (talk) 05:24, 1 February 2022 (UTC)[reply]

✓ Done by requestor themself (diff). NguoiDungKhongDinhDanh 18:48, 1 February 2022 (UTC)[reply]

This page is protected while posting this message. Please replace File:Logo Karrierewerkstatt PNG.png with File:Logo Karrierewerkstatt.png because File renamed: Criterion 6 Thank you. Message added by global replace -- Jonteemil (talk) 05:25, 1 February 2022 (UTC)[reply]

✓ Done by requestor themself (diff). NguoiDungKhongDinhDanh 18:48, 1 February 2022 (UTC)[reply]