Screenshot: Difference between revisions
No edit summary |
(→Console commands: - added devshots_screenshot.) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{LanguageBar}} | |||
{{tabs|Screenshot|goldsrc=1|source=1|main=source}} | {{tabs|Screenshot|goldsrc=1|source=1|main=source}} | ||
{{ | |||
[[File:JPEG_Quality_Comparison_(uncompressed).png|thumb|right|400px|A comparison of JPEG quality, at 1, 50, 90 (default), and 100, all taken in 2560x1440 resolution. Note the visual difference between 50 and 100 is almost unnoticable unless viewing closer, but the filesize is roughly ten times as large.]] | |||
A '''screenshot''' is a single rendered frame outputted to an image file. The {{src|4}} engine can output [[JPEG]] (.jpg), [[TGA]] (.tga) and {{gmod|only}} [[PNG]] (.png){{confirm}} image formats. | |||
[[JPEG]]s use [[Wikipedia:Lossy compression|lossy compression]], which can cause compression artifacts at lower quality settings but take up significantly less space than [[TGA]]s. TGA images are uncompressed, meaning the saved image is identical to the rendered frame with no loss of quality, but the file size will be significantly larger, plus may require third-party software (such as {{ps|1}}) in order to open/preview the image. Screenshots can be also taken using other programs and injectors, with support for modern formats like PNG (which is lossless, like TGA, except with proper compression, aswell as compatible with more third-party software). | |||
The default screenshot key is {{key|F5}}. This will take a JPEG screenshot at default quality 90 unless the console variable for quality is adjusted. | |||
==Limitations== | |||
{{warning|The {{code|screenshot}} and {{code|jpeg}} commands take the screenshot immediately, displaying all current screen elements. In other words, if these commands are manually typed into the console, the screenshot will also contains the console.}} | |||
{{workaround|To take a gameplay screenshot, the command should be [[bind|bound]] to a key and the console closed.|offset=1}} | |||
==Console commands== | |||
{| class=wikitable | |||
| {{code|screenshot}} | |||
| Takes a TGA screenshot | |||
|- | |||
| {{code|devshots_screenshot}} | |||
| Same as above. | |||
|- | |||
| {{code|cl_screenshotname "name"}} | |||
:{{csgo|not}} | |||
| The filename to save the next TGA screenshot with | |||
|- | |||
|style=white-space:nowrap| {{code|jpeg [filename] [quality 1-100]}} | |||
| Takes a JPEG screenshot. Progressive or not?{{Clarify}} The filename will have ".jpg" appended. If no quality is specified, the quality defined by ''jpeg_quality'' is used. {{confirm|You cannot specify the quality without a filename.}} | |||
{{tip|The filename may contain subdirectories as long as they exist, for example {{code|jpeg overviews/test_01}} writes into the directory {{path|screenshots/overviews/}}.}} | |||
|- | |||
| {{code|jpeg_quality [1-100]}} | |||
:{{csgo|not}} | |||
| Compression quality to save the JPEG with, ranging from 1-100, with 100 being the best quality. The default value is 90, which means visually lossless for most images. {{note|This is reset to 90 every time the game is closed but one can force it through [[autoexec]].cfg.}} | |||
|- | |||
| {{code|poster [multiplier]}} | |||
:{{gmod|only}} | |||
| Takes a screenshot X times your game resolution and saves it to {{path|screenshots/}} as a png. | |||
|} | |||
==Files== | |||
Screenshots are saved in the {{path|<nowiki><game>/screenshots/</nowiki>}} directory of the relevant game. By default, the naming scheme they use is "''mapname''####", with sequential numbering using four digits, for example "de_train0035". Screenshots taken with the {{code|poster}} command use a naming scheme of "''poster''-##-##-## ##-##-##", which specifies the year, month, day, hour, minute and second, for example "poster-24-06-07 23-44-45". | |||
== See also == | |||
*[[How To Take Artistic Screenshots]] - a general guide on setting up, saving, and editing screenshots for artistic purposes | |||
*[[Panorama Creation]] - a guide for creating a panorama image using multiple screenshots | |||
*[[:Category:Screenshot needed]] - a list of articles on this Wiki which could use one or more screenshots. You can help! | |||
{{Source topicon}} | {{Source topicon}} | ||
[[Category:Files]] | [[Category:Files]] |
Latest revision as of 23:04, 7 May 2025
A screenshot is a single rendered frame outputted to an image file. The Source engine can output JPEG (.jpg), TGA (.tga) and (only in
) PNG (.png)[confirm] image formats.
JPEGs use lossy compression, which can cause compression artifacts at lower quality settings but take up significantly less space than TGAs. TGA images are uncompressed, meaning the saved image is identical to the rendered frame with no loss of quality, but the file size will be significantly larger, plus may require third-party software (such as Adobe Photoshop) in order to open/preview the image. Screenshots can be also taken using other programs and injectors, with support for modern formats like PNG (which is lossless, like TGA, except with proper compression, aswell as compatible with more third-party software).
The default screenshot key is F5. This will take a JPEG screenshot at default quality 90 unless the console variable for quality is adjusted.
Limitations


Console commands
screenshot | Takes a TGA screenshot |
devshots_screenshot | Same as above. |
cl_screenshotname "name" | The filename to save the next TGA screenshot with |
jpeg [filename] [quality 1-100] | Takes a JPEG screenshot. Progressive or not?[Clarify] The filename will have ".jpg" appended. If no quality is specified, the quality defined by jpeg_quality is used. ![]() ![]() ![]() screenshots/overviews/ . |
jpeg_quality [1-100] | Compression quality to save the JPEG with, ranging from 1-100, with 100 being the best quality. The default value is 90, which means visually lossless for most images. ![]() |
poster [multiplier] | Takes a screenshot X times your game resolution and saves it to ![]() screenshots/ as a png.
|
Files
Screenshots are saved in the <game>/screenshots/
directory of the relevant game. By default, the naming scheme they use is "mapname####", with sequential numbering using four digits, for example "de_train0035". Screenshots taken with the poster command use a naming scheme of "poster-##-##-## ##-##-##", which specifies the year, month, day, hour, minute and second, for example "poster-24-06-07 23-44-45".
See also
- How To Take Artistic Screenshots - a general guide on setting up, saving, and editing screenshots for artistic purposes
- Panorama Creation - a guide for creating a panorama image using multiple screenshots
- Category:Screenshot needed - a list of articles on this Wiki which could use one or more screenshots. You can help!