File:Felis silvestris silvestris small gradual decrease of quality.png

頁面內容唔支援其他語言。
出自維基百科,自由嘅百科全書

Felis_silvestris_silvestris_small_gradual_decrease_of_quality.png(519 × 600 像素,檔案大細:156 KB ,MIME類型:image/png

摘要

描述
English: Gradual JPEG artifacts example, with decreasing quality from right to left
日期
來源 Felis_silvestris_silvestris.jpg
作者
Other versions Derivative works of this file:  Felis silvestris silvestris small gradual decrease of quality - JPEG compression.jpg
This is a retouched picture, which means that it has been digitally altered from its original version. Modifications: Gradual JPEG artifacts example. The original can be viewed here: Felis silvestris silvestris.jpg. Modifications made by AzaToth.

Source code

#!/usr/bin/perl 
use strict;
use warnings;
use v5.12;
use File::Temp qw/ tempdir /;
use Graphics::Magick;
use Math::Round qw(:all);
my $p = new Graphics::Magick;
$p->Read("Felis_silvestris_silvestris_small.png");
#$p->Resize('x600');
my ($width, $height) = $p->Get('width', 'height');
my $center = $height;
my $result = new Graphics::Magick;
$result->Set(size=>"${width}x${height}");
$result->Read();
$result->Set('quality', 100);
my $dir = tempdir(CLEANUP => 1);
my $chop = 16; # 1 MCU normally
my $vertical = 0;
for my $n (0..($vertical?$height:$width)) {
        next if $n%$chop; 
        my $current = $p->Clone();
        $current->Crop(width => $vertical?$width:$chop, height => $vertical?$chop:$height, x => $vertical?0:$n, y=>$vertical?$n:0);
		my $quality =  round_even(100*abs(($n+6*$chop)**4/$center**4));
		say $quality;
        $current->Set('quality' => $quality);
        my $filename = sprintf "%s/%05d.jpg", $dir, $n;
        $current->Write($filename);
        my $m = new Graphics::Magick;
        $m->Read($filename);
        $result->Composite( image => $m, x => $vertical?0:$n, y => $vertical?$n:0);
}
$result->Write('Felis_silvestris_silvestris_small_gradual_decrease_of_quality.png');

協議

w:en:Creative Commons
署名
Ĉi tiu dosiero estas disponebla laŭ la permesilo Krea Komunaĵo Atribuite 3.0 Neadaptita.
你可以:
  • 去分享 – 複製、發佈同傳播呢個作品
  • 再改 – 創作演繹作品
要遵照下面嘅條件:
  • 署名 – 你一定要畀合適嘅表彰、畀返指向呢個授權條款嘅連結,同埋寫明有無改過嚟。你可以用任何合理方式去做,但唔可以用任何方式暗示授權人認可咗你或者你嘅使用方式。

Original upload log

This image is a derivative work of the following images:

  • File:Felis_silvestris_silvestris.jpg licensed with Cc-by-3.0
    • 2010-02-18T00:29:12Z Michael Gäbler 1496x1729 (1659050 Bytes) {{Information |Description=''[[Felis silvestris silvestris|Felis silvestris silvestris]]'' (Schreber, 1775) {{en|1=[[:en: European Wildcat|European Wildcat]]}} {{de|1=[[:de:Europäische Wildkatze|Europäische Wildkatze]] im [

Uploaded with derivativeFX

Captions

Add a one-line explanation of what this file represents
This is an example of the relationship between compression rate to quality of a .jpg image file. The rate is high compression to low quality.

Items portrayed in this file

圖中顯示嘅係

3 10 2011

image/png

檔案歷史

撳個日期/時間去睇響嗰個時間出現過嘅檔案。

日期/時間縮圖尺寸用戶註解
現時2022年5月25號 (三) 16:22響2022年5月25號 (三) 16:22嘅縮圖版本519 × 600(156 KB)TilmannRThis is an image about JPEG compression artifacts. Therefore quantized re-encoding is undesirable. Reverted to version as of 15:42, 4 March 2017 (UTC)
2022年4月11號 (一) 08:59響2022年4月11號 (一) 08:59嘅縮圖版本519 × 600(94 KB)PhreneticcReduced "weight" of the file.
2017年3月4號 (六) 15:42響2017年3月4號 (六) 15:42嘅縮圖版本519 × 600(156 KB)GnashOptimized
2011年10月3號 (一) 21:28響2011年10月3號 (一) 21:28嘅縮圖版本519 × 600(278 KB)AzaToth

以下嘅1版用到呢個檔:

全域檔案使用情況

下面嘅維基都用緊呢個檔案: