Image Compression Algorithmes
Image Compression Algorithmes
Algorithmes
الغن محمد
ي ملك محمد عبد •
منة عالء أبو الفتح طه •
كيلس نبيل فهيم ر •
الجارح
ي احمد عبد العزيز •
احمد صابر رجب محمد •
-What is image compression?
Pros: Cons:
• It provides a highly reduced image size. • Quality hurts due to the high rate of compression.
• Faster loading time. • Removes image components.
• Ideal for web-based platforms. • It is irreversible.
• Supported by a variety of tools, plugins, and software.
-Lossless
Compression
• Lossless image compression
algorithms resize an image
into smaller versions but
don't compromise the image
quality. Simply, this method
compresses images without
eliminating critical data or
reducing image quality.
-Lossless Compression
Pros: Cons:
• Retains critical image information. • Compression files are larger than lossy file.
• Zero loss in image quality. • Decoding is complex.
• Changes are reversed.
• Slightly decreases file sizes.
•JPEG
compression
• JPEG stands for Joint Photographic
Experts Groups which is a type of lossy
compression, and such image
compression algorithms are performed
to reduce the file size without hurting its
quality.
How does
JPEG
compression
work?
• Every image consists of a matrix of pixels
• Every pixel contain a number which is the shade of
color of the pixel
How does JPEG
compression
work?
How does
JPEG
compression • we decompose the image to 8x8 block of frequency
components where each element represent a brightness level
work?
• Then convert each element to 8x8 blocks where each
element of it represents the presence of a particular
frequency component
How does JPEG
compression
work?
• We can easily compress the frequencies
less visible to us more by dividing those
frequencies by large constants
• The frequencies more visible to us we
divide them by smaller constants
• We quantizes the results by rounding
them to the nearest integer
• The components divided by larger
constants are rounded to zero
• This results in higher compression rate
but lower image quality
• After quantizing, all the high frequencies become zeros
How does JPEG • We can optimize saving the zeros by rearranging them in
compression a zigzag order and grouping the zeros together
work? • Instead of storing each zero separately we can store the
value (zero) and how many time they repeated
consecutively
• Finally, we can further compress what's left by encoding
the more frequent values with fewer bits and less
How does frequent values with more bits. Doing so reduces the