--===============4955710193964955978==
Content-Type: multipart/alternative; boundary="00000000000021b93305b7fb73df"
--00000000000021b93305b7fb73df
Content-Type: text/plain; charset="UTF-8"
I've started a new Perl module related more to the image part of the PNG,
which is released as a "Development release" here:
https://metacpan.org/release/BKB/Image-PNG-Util-0.00_01
I have been trying it out on some images and I'd like to ask some questions
about the PNG compression of files.
Taking the following image as an example:
https://i.redd.it/bb8fwzmhwv861.png
which was posted to reddit:
https://www.reddit.com/r/wholesomememes/comments/koucrm/higher_quality_happiness/
the image is of colour type PNG_COLOR_TYPE_RGBA, but its alpha channel is
completely opaque (check the software above), and all its pixels are grey
(again this can be proved with the above software).
My question is, why does removing the alpha channel or changing rgb to grey
in the image result in a drastic reduction in image size? With the above
software, we get
[ben-at-mikan] {18:07 45} ipuex 506 $ ls -l
total 1060
-rw-r--r-- 1 ben ben 315 Jan 3 10:27 alphard.pl
-rw-r--r-- 1 ben ben 207484 Jan 2 21:26 bb8fwzmhwv861-gray.png
-rw-r--r-- 1 ben ben 162752 Jan 3 11:29 bb8fwzmhwv861-noalpha-gray.png
-rw-r--r-- 1 ben ben 336651 Jan 3 11:28 bb8fwzmhwv861-noalpha.png
-rw-r--r-- 1 ben ben 365237 Jan 2 18:01 bb8fwzmhwv861.png
Here without the alpha channel, which consists of repetitive 0xFF every
fourth byte, we get 336651 bytes as opposed to 365237 with the alpha
included, and with all the bytes changed to greyscale, we get 207484 bytes,
which is just reducing triplets of identical RGB values to a single grey
value. Putting RGB to grey and zapping the alpha together, the image size
is reduced by more than half, and yet all we have done is to remove
extraordinarily repetitive information which it seems a compression
algorithm might have been able to remove easily.
Thanks for any insights.
--00000000000021b93305b7fb73df
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
I've started a new Perl module related more to the ima=
ge part of the PNG, which is released as a "Development release" =
here:
I have been trying it out on some images an=
d I'd like to ask some questions about the PNG compression of files.iv>
Taking the following image as an example:
=
which was posted t=
o reddit:
<=
div>
the image is of colour type PNG_COLOR_TYPE_RGBA, but its=
alpha channel is completely opaque (check the software above), and all its=
pixels are grey (again this can be proved with the above software).
<=
div>
My question is, why does removing the alpha channel or c=
hanging rgb to grey in the image result in a drastic reduction in image siz=
e? With the above software, we get
[ben-at-mikan] {18=
:07 45} ipuex 506 $ ls -l
total 1060
-rw-r--r-- =C2=A01 ben =C2=A0ben=
=C2=A0 =C2=A0 315 Jan =C2=A03 10:27
alphard.=
pl-rw-r--r-- =C2=A01 ben =C2=A0ben =C2=A0207484 Jan =C2=A02 21:26 b=
b8fwzmhwv861-gray.png
-rw-r--r-- =C2=A01 ben =C2=A0ben =C2=A0162752 Jan =
=C2=A03 11:29 bb8fwzmhwv861-noalpha-gray.png
-rw-r--r-- =C2=A01 ben =C2=
=A0ben =C2=A0336651 Jan =C2=A03 11:28 bb8fwzmhwv861-noalpha.png
-rw-r--r=
-- =C2=A01 ben =C2=A0ben =C2=A0365237 Jan =C2=A02 18:01 bb8fwzmhwv861.png
r>
Here without the alpha channel, which consists =
of repetitive 0xFF every fourth byte, we get 336651 bytes as opposed to 365=
237 with the alpha included, and with all the bytes changed to greyscale, w=
e get 207484 bytes, which is just reducing triplets of identical RGB values=
to a single grey value. Putting RGB to grey and zapping the alpha together=
, the image size is reduced by more than half, and yet all we have done is =
to remove extraordinarily repetitive information which it seems a compressi=
on algorithm might have been able to remove easily.=C2=A0
iv>
Thanks for any insights.
r>
--00000000000021b93305b7fb73df--
--===============4955710193964955978==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============4955710193964955978==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
png-mng-implement mailing list
png-mng-implement-at-lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
--===============4955710193964955978==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Hangout mailing list
Hangout-at-nylxs.com
http://lists.mrbrklyn.com/mailman/listinfo/hangout
--===============4955710193964955978==--
--===============4955710193964955978==
Content-Type: multipart/alternative; boundary="00000000000021b93305b7fb73df"
--00000000000021b93305b7fb73df
Content-Type: text/plain; charset="UTF-8"
I've started a new Perl module related more to the image part of the PNG,
which is released as a "Development release" here:
https://metacpan.org/release/BKB/Image-PNG-Util-0.00_01
I have been trying it out on some images and I'd like to ask some questions
about the PNG compression of files.
Taking the following image as an example:
https://i.redd.it/bb8fwzmhwv861.png
which was posted to reddit:
https://www.reddit.com/r/wholesomememes/comments/koucrm/higher_quality_happiness/
the image is of colour type PNG_COLOR_TYPE_RGBA, but its alpha channel is
completely opaque (check the software above), and all its pixels are grey
(again this can be proved with the above software).
My question is, why does removing the alpha channel or changing rgb to grey
in the image result in a drastic reduction in image size? With the above
software, we get
[ben-at-mikan] {18:07 45} ipuex 506 $ ls -l
total 1060
-rw-r--r-- 1 ben ben 315 Jan 3 10:27 alphard.pl
-rw-r--r-- 1 ben ben 207484 Jan 2 21:26 bb8fwzmhwv861-gray.png
-rw-r--r-- 1 ben ben 162752 Jan 3 11:29 bb8fwzmhwv861-noalpha-gray.png
-rw-r--r-- 1 ben ben 336651 Jan 3 11:28 bb8fwzmhwv861-noalpha.png
-rw-r--r-- 1 ben ben 365237 Jan 2 18:01 bb8fwzmhwv861.png
Here without the alpha channel, which consists of repetitive 0xFF every
fourth byte, we get 336651 bytes as opposed to 365237 with the alpha
included, and with all the bytes changed to greyscale, we get 207484 bytes,
which is just reducing triplets of identical RGB values to a single grey
value. Putting RGB to grey and zapping the alpha together, the image size
is reduced by more than half, and yet all we have done is to remove
extraordinarily repetitive information which it seems a compression
algorithm might have been able to remove easily.
Thanks for any insights.
--00000000000021b93305b7fb73df
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
I've started a new Perl module related more to the ima=
ge part of the PNG, which is released as a "Development release" =
here:
I have been trying it out on some images an=
d I'd like to ask some questions about the PNG compression of files.iv>
Taking the following image as an example:
=
which was posted t=
o reddit:
<=
div>
the image is of colour type PNG_COLOR_TYPE_RGBA, but its=
alpha channel is completely opaque (check the software above), and all its=
pixels are grey (again this can be proved with the above software).
<=
div>
My question is, why does removing the alpha channel or c=
hanging rgb to grey in the image result in a drastic reduction in image siz=
e? With the above software, we get
[ben-at-mikan] {18=
:07 45} ipuex 506 $ ls -l
total 1060
-rw-r--r-- =C2=A01 ben =C2=A0ben=
=C2=A0 =C2=A0 315 Jan =C2=A03 10:27
alphard.=
pl-rw-r--r-- =C2=A01 ben =C2=A0ben =C2=A0207484 Jan =C2=A02 21:26 b=
b8fwzmhwv861-gray.png
-rw-r--r-- =C2=A01 ben =C2=A0ben =C2=A0162752 Jan =
=C2=A03 11:29 bb8fwzmhwv861-noalpha-gray.png
-rw-r--r-- =C2=A01 ben =C2=
=A0ben =C2=A0336651 Jan =C2=A03 11:28 bb8fwzmhwv861-noalpha.png
-rw-r--r=
-- =C2=A01 ben =C2=A0ben =C2=A0365237 Jan =C2=A02 18:01 bb8fwzmhwv861.png
r>
Here without the alpha channel, which consists =
of repetitive 0xFF every fourth byte, we get 336651 bytes as opposed to 365=
237 with the alpha included, and with all the bytes changed to greyscale, w=
e get 207484 bytes, which is just reducing triplets of identical RGB values=
to a single grey value. Putting RGB to grey and zapping the alpha together=
, the image size is reduced by more than half, and yet all we have done is =
to remove extraordinarily repetitive information which it seems a compressi=
on algorithm might have been able to remove easily.=C2=A0
iv>
Thanks for any insights.
r>
--00000000000021b93305b7fb73df--
--===============4955710193964955978==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============4955710193964955978==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
png-mng-implement mailing list
png-mng-implement-at-lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
--===============4955710193964955978==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Hangout mailing list
Hangout-at-nylxs.com
http://lists.mrbrklyn.com/mailman/listinfo/hangout
--===============4955710193964955978==--