User talk:Supermariofan67/Sandbox2: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
(→‎Image gamma: can anyone with a Mac verify if this works?)
Line 12: Line 12:
==Discussion==
==Discussion==


==Image gamma==
==Image color-correction documentation==
===How to safely optimize images with color-correction metadata===
It is possible to keep certain metadata, such as the gamma chunk or embedded ICC profiles, while still optimizing the image. If you are familiar with the command line and willing to use it, you can do this by manually running the actual PNG optimizer from the command line and passing the appropriate options.


====Installing the tools====
'''Suggestion: Use the term "color-correction metadata" rather than "gamma brightening," since gamma is technically only one of several pieces of metadata (ICC profiles seem to be the most common) that affect the color of the image and could be removed by optimizers.'''
===PNG chunks===
PNGs can contain four ancillary chunks with colorspace information<ref>http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html#C.Anc-color</ref>, which may affect the way software displays the colors in an image:
*gAMA - determines color intensity
*cHRM - determines color chromaticity
*sRGB -
*iCCP -
 
While most images do not contain this metatdata, if it is present, these chunks should be preserved to ensure that browsers display the image's colors as intended. Images that were originally exported from the Adobe suite or other specialized software (such as artwork and press images) seem to be the most likely to contain color-correction metadata, while emulator screenshots likely do not contain such metadata. Most optimizing utilities (such as [[User:Wildgoosespeeder/PNG Monstrous|PNG Monstrous]]) remove this data by default, which can be problematic.
 
===How to safely optimize images that contain color-correction metadata===
It is possible to keep certain metadata, such as the gamma chunk or embedded ICC profiles, while still optimizing the image. [https://imageoptim.com ImageOptim] on macOS should support this option if you disable <code>Strip PNG Metadata</code> and <code>Strip JPG Metadata</code> in Preferences. Otherwise (for Windows and Linux), If you are familiar with the command line and willing to use it, you can do this by manually running the actual PNG optimizer from the command line and passing the appropriate options. For the best compression, run <code>pngout</code> then <code>zopflipng</code>, but running only <code>zopflipng</code> is probably good enough in most cases. After optimizing, '''please verify that the colors of the new image remain the same.'''
 
====Installing the command-line tools====
*Linux: Install <code>zopfli</code> and <code>pngout</code> with your package manager.
*Windows:
**[http://advsys.net/ken/utils.htm Download pngout for Windows]
**zopflipng: TBD


====Zopflipng====
====Zopflipng====
Example command to preserve important chunks:
<code>zopflipng --keepchunks=iCCP,gAMA,cHRM input.png output.png</code>
<code>zopflipng --keepchunks=iCCP,gAMA,cHRM input.png output.png</code>


See [https://github.com/google/zopfli/issues/113 this page] for further explanation.
See [https://github.com/google/zopfli/issues/113 this page] for further explanation.
====pngout====
====pngout====
Example command to preserve important chunks:
<code>pngout -kiCCP,gAMA,cHRM input.png output.png</code>
<code>pngout -kiCCP,gAMA,cHRM input.png output.png</code>



Revision as of 19:15, February 19, 2020

Navigation: (User pageTalk pageSandbox 1Sandbox 2File Maintenance Project PageStatusSignature)
Status: Slightly active. I have more free time now so I'll probably spend more time here. (Updated 00:02, June 8, 2021 (EDT))
Current project: Replacing and uploading Mario Kart Wii and New Super Mario Bros. Wii screenshots, doing various file maintenance (mostly for those two games).


This is on a talk page to allow users who move images to change their links here or strikeout images that are replaced. Also, anyone is welcome to add screenshots to the list that you feel should be replaced, as long as it is a screenshot for any of the games listed below.

Potentially helpful notes:


Discussion

Image color-correction documentation

Suggestion: Use the term "color-correction metadata" rather than "gamma brightening," since gamma is technically only one of several pieces of metadata (ICC profiles seem to be the most common) that affect the color of the image and could be removed by optimizers.

PNG chunks

PNGs can contain four ancillary chunks with colorspace information[1], which may affect the way software displays the colors in an image:

  • gAMA - determines color intensity
  • cHRM - determines color chromaticity
  • sRGB -
  • iCCP -

While most images do not contain this metatdata, if it is present, these chunks should be preserved to ensure that browsers display the image's colors as intended. Images that were originally exported from the Adobe suite or other specialized software (such as artwork and press images) seem to be the most likely to contain color-correction metadata, while emulator screenshots likely do not contain such metadata. Most optimizing utilities (such as PNG Monstrous) remove this data by default, which can be problematic.

How to safely optimize images that contain color-correction metadata

It is possible to keep certain metadata, such as the gamma chunk or embedded ICC profiles, while still optimizing the image. ImageOptim on macOS should support this option if you disable Strip PNG Metadata and Strip JPG Metadata in Preferences. Otherwise (for Windows and Linux), If you are familiar with the command line and willing to use it, you can do this by manually running the actual PNG optimizer from the command line and passing the appropriate options. For the best compression, run pngout then zopflipng, but running only zopflipng is probably good enough in most cases. After optimizing, please verify that the colors of the new image remain the same.

Installing the command-line tools

Zopflipng

Example command to preserve important chunks: zopflipng --keepchunks=iCCP,gAMA,cHRM input.png output.png

See this page for further explanation.

pngout

Example command to preserve important chunks: pngout -kiCCP,gAMA,cHRM input.png output.png

Pre-release image

A proposed image template:

This low-quality screenshot is being used on a page to represent the content of a game prior to its release, and therefore is not qualified for higher-quality recapture from the released game. It is presumed to be from the highest-quality official source available. Unless a better-quality official (e.g., press kit) source or a frame dump from an official video is found, this image should be considered to be in the best available quality and should not be tagged with {{image-quality}}.

To summarize, an image qualifies for this tag if and only if:

  • The image is substantially lower quality than an image obtained through a normal in-game screenshot, such that it would normally be tagged with {{image-quality}}.
  • Its only purpose is to describe pre-release and unused content. If it has additional purposes, the image should be tagged with {{image-quality}} alongside this, with the issue described in the image-quality tag.

AND

  • It is likely to be already in the highest quality available because it is from an official source or video frame-dump.

This template is intended for use on screenshots (particularly low- or sub-optimal quality ones) that are linked in one or more pages to describe pre-release and unused content. For an image to receive this tag, it must already be in the highest quality available from an official source or video frame-dump. If an image with this tag is used on pages that are not describing such content (e.g., level articles) in addition to pages that do describe PR&U content, an additional image from the final game should be uploaded to serve these purposes and linked in the "Other versions" section of {{aboutfile}}.

I am proposing this template because I notice many pre-release and unused content images that are tagged with {{image-quality}} despite already being in the highest available quality from an official press-kit or trailer video frame dump. Since these images are intended to describe such content, they cannot be replaced with anything higher quality. This template would notify users that an image, despite its low quality, is already in the highest available quality. An image would not qualify for this tag if, despite being pre-release, it does not have any purpose describing PR&U content, or if a higher-quality version is available from something like an official press-kit or trailer video frame dump.

Gallery Sorting

I have made a simple Java program/script to automatically sort galleries alphabetically. It is now on GitHub if anyone is interested. However, please note that I have not extensively tested it, and if you use it, you should double-check the result to make sure nothing was removed/broken in the gallery. Please tell me about any bugs. Also, feel free to tell me about any gallery sections that need alphabetical sorting below, and I will take care of it:

  • -
  • -

New Super Mario Bros. Wii

Non-screenshots

Inside levels

Maps and menus

Prerelease

Emulator glitches

Many of these appear to contain emulation glitches (identifiable by pixelated coins and background textures), which can be resolved by running newer versions of dolphin and setting the options listed here: [1]. I plan to recapture these just to be safe.

Mario Kart Wii

Super Mario Galaxy

Image Dump

PR&UC

There's really not much I can do about this stuff.

Super Mario Galaxy 2

I have reached my goals for the Super Mario Galaxy 2 project and will now be moving on to Super Mario Galaxy. However, I will still continue to upload replacements for any new low-quality images that get uploaded, and I still take requests for new images, replacement images, or similar file maintenance for Super Mario Galaxy 2. If you have any suggestions, please leave them below. This includes any needed replacements for images linked on the main SMG2 article, or requests to crop letterboxing on images, etc.

Completed. Check revision history to see archive.

Super Mario 3D World

I have mostly completed the SM3DW image replacement project, except for the following files.

Yoshi's Woolly World

Scrapbook Theater

To reupload

These are just sub-optimal images (e.g., youtube screenshots). Not all of them are horrible.

Super Mario Maker 2

Capture images for story levels. Also, some of the following may eventually need to be recaptured or replaced with sprites