SlideShare a Scribd company logo
1 of 3
Download to read offline
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
ยฉ 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3292
Compress Image without Losing Image Quality using nQuant Library
Rishikesh Mhatre1, Prof. Shubhangi Mahadik2
1Bharati Vidyapeethโ€™s Institute of Management and Information Technology, Navi Mumbai, India
2Bharati Vidyapeethโ€™s Institute of Management and Information Technology, Navi Mumbai, India
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract โ€“ This paper attempts to give best image
compression technique which can be lossless image
compression technique there are many library used for
compressing the png image but many of them are lossy
compression techniques which reduce image quality afterthe
compression is done but nQuant library which can compress
png image without losing its quality it perform 0 to 100
percent compression which can user select according
percentage image size will compress with maintaining a
proper aspect ratio and image quality.
Key Words: Programmatically setting the nQuant
compression, PNG, PNG Algorithm for Compression
1. INTRODUCTION
As the demand is increasing for image processing
for improving performance of any website rendering and it
will take many websites to load slowly if image size is big
and in government form submission they required less size
image e.g 50kb is allowed, if the imageis ofpngformatimage
then many websites fail to compress the png image size and
if compression is happen the photo pixels get damaged and
make image blurry it happen due to lossy compression
techniques.
This is applicable social networking like Facebook,
WhatsApp, Instagram where theyusedthis kindofalgorithm
to compress the image size to make page reload process
faster but there some drawbacks that image is compressed
looses its detailed quality to avoid this drawback we
introduced one nQuant library which also implemented
programmatically with these websites too.
1.1 Microsoft Nuget nQuant Technique
nQuant is a .net color quantizer producing high quality
256 color 8 bit PNG images using an algorithm optimized for
the highest quality possible.
nQuant was originally developedaspartofalargereffortI
have been developing called RequestReduce which isanhttp
module that automatically minifiesandmergesCSSaswellas
sprites their background images on the fly. I wanted the
sprited files to be optimized and I was not satisfied with the
size of the 32 bit images that the .net library was producing
nor was the quantization resultoflikePNGQuantandPNGNQ
of acceptable quality. I set outto create thisquantizerandthe
results are images 3x smaller than their 32 bit originals with
practically no perceptible quality loss.
Thisalgorithm oftenproducesoptimizedimageswithless
quality degradation than other quantizers due to its
methodology of optimizing based on clusters of colors that
are closely related to one another rather than simply finding
the most used colors in an image. nQuant's algorithm takes
Wu's three dimensionalRGBbasedquantizationstrategyand
adapts it to work with transparent PNGs.
How to use this library implement below code
1. Either download nQuant from this site or add it to
your Visual Studio project seamlessly via Nuget. To
use Nuget nQuant Libray, Install-Package nQuant
from the Package Manager Console.
2. If you do not use Nuget, add nQuant to your
project and add a reference to it.
3. If you are using C#, you would call nQuant as
follows.
var quantizer = new WuQuantizer();
using(var bitmap = new Bitmap(sourcePath))
{
using(var quantized =
quantizer.QuantizeImage(bitmap, alphaTransparency,
alphaFader))
{
quantized.Save(targetPath, ImageFormat.Png);
}
}
1.2 Microsoft Nuget nQuant Versions
Version Downloads Last updated
1.0.3 233,511 1/25/2013
0.9.8 18,540 10/9/2011
0.9.6 639 9/11/2011
0.9.5 1,459 9/6/2011
2. Comparison between compression technique
Method Advantages Disadvantages
Wavelet a)High compression
ratio
b)state-of-the art
c)low encoding
complexity
d)it produces no
blocking artifacts
a)Coefficient
quantization
b)bit allocation
c)less efficient
JPEG/DCT a)current standard a)Coefficient
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
ยฉ 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3293
b) good quality and
less amount of
compression
c)comparatively fast
with others methods
quantization
b)bit allocation
VQ a)Simple decoder
b)no coefficient
quantization
a)slow codebook
generation
b)small bpp
Fractal a)good
mathematical
encoding frame
b)resolution free
decoding
a)slow encoding
Genetic
algorithm
a)capable of
handlinn complexity
and irregular
solution spaces
b)robust technique
a)repeated fitness
function evaluation
for complex problem
b)not more efficient
nQuant a) RGB based
quantization
strategy
b)work with
transparent PNGs
a) it is applicable for
32 bit image only
2.1 Image Compression Lifecycle
Image Compression without loosing quality
Image Compression with loosing quality
3. CONCLUSIONS
We have summarized the characteristics of four up- to-date
image coding algorithms based on Wavelet, JPEG/DCT, VQ,
Fractal, Genetics approaches, nQuant. Any of the five
approaches is satisfactory when the 0.5 bits per pixel is
requested. However, for a very low bit rate, forexample0.25
bpp or lower, the embedded zerotree wavelet (EZW)
approach is more applicable and superior to other
approaches. For practical applications, we conclude that
(1) Wavelet transform based compression algorithms are
strongly recommended,
(2) JPEG/ DCT based approach might use an adaptive
quantization table,
(3) VQ technique is not good for a low bit rate compression
and it is slow processed,
(4) Fractal approach should utilize its resolution-free
decoding property for a low bit compression and slow in
processing,
(5) nQuant compression technique created for compressing
32 bit png images it is RGB based quantization strategy and
work with transparent PNGs
REFERENCES
[1] https://compresspng.com/.
[2] https://www.iloveimg.com/compress-image/compress-
png.
Other
Compression
Methods
Compressed
PNG Image
with loss
PNG Raw
Image
nQuant
Compression
Compressed
PNG Image
without loss
PNG Raw
Image
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072
ยฉ 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3294
[3] Fundamental of Computer Graphics Book by Erik
Reinhard, Kelvin Sung, Michael Ashikhmin, Michael
Gleicher, Peter Shirley, Peter Willemsen, Stephen R.
Marschner, and William B. Thompson.
[4] https://ezgif.com/optipng.
[5] https://www.websiteplanet.com/webtools/imagecomp
ressor/
[6] https://archive.codeplex.com/?p=nquant

More Related Content

Similar to IRJET- Compress Image without Losing Image Quality using nQuant Library

Implementation of embedded arm9 platform using qt and open cv for human upper...
Implementation of embedded arm9 platform using qt and open cv for human upper...Implementation of embedded arm9 platform using qt and open cv for human upper...
Implementation of embedded arm9 platform using qt and open cv for human upper...
Krunal Patel
ย 

Similar to IRJET- Compress Image without Losing Image Quality using nQuant Library (20)

HANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNING
HANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNINGHANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNING
HANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNING
ย 
HANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNING
HANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNINGHANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNING
HANDWRITTEN DIGIT RECOGNITION USING MACHINE LEARNING
ย 
IRJET- Mango Classification using Convolutional Neural Networks
IRJET- Mango Classification using Convolutional Neural NetworksIRJET- Mango Classification using Convolutional Neural Networks
IRJET- Mango Classification using Convolutional Neural Networks
ย 
IRJET- Different Approaches for Implementation of Fractal Image Compressi...
IRJET-  	  Different Approaches for Implementation of Fractal Image Compressi...IRJET-  	  Different Approaches for Implementation of Fractal Image Compressi...
IRJET- Different Approaches for Implementation of Fractal Image Compressi...
ย 
IMAGE CAPTION GENERATOR USING DEEP LEARNING
IMAGE CAPTION GENERATOR USING DEEP LEARNINGIMAGE CAPTION GENERATOR USING DEEP LEARNING
IMAGE CAPTION GENERATOR USING DEEP LEARNING
ย 
Project report
Project reportProject report
Project report
ย 
2D to 3D dynamic modeling of architectural plans in Augmented Reality
2D to 3D dynamic modeling of architectural plans in Augmented Reality2D to 3D dynamic modeling of architectural plans in Augmented Reality
2D to 3D dynamic modeling of architectural plans in Augmented Reality
ย 
Self Driving Car
Self Driving CarSelf Driving Car
Self Driving Car
ย 
Traffic Sign Recognition System
Traffic Sign Recognition SystemTraffic Sign Recognition System
Traffic Sign Recognition System
ย 
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDSFACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
ย 
Implementation of embedded arm9 platform using qt and open cv for human upper...
Implementation of embedded arm9 platform using qt and open cv for human upper...Implementation of embedded arm9 platform using qt and open cv for human upper...
Implementation of embedded arm9 platform using qt and open cv for human upper...
ย 
IRJET- Review of Tencent ML-Images Large-Scale Multi-Label Image Database
IRJET-  	  Review of Tencent ML-Images Large-Scale Multi-Label Image DatabaseIRJET-  	  Review of Tencent ML-Images Large-Scale Multi-Label Image Database
IRJET- Review of Tencent ML-Images Large-Scale Multi-Label Image Database
ย 
CAR DAMAGE DETECTION USING DEEP LEARNING
CAR DAMAGE DETECTION USING DEEP LEARNINGCAR DAMAGE DETECTION USING DEEP LEARNING
CAR DAMAGE DETECTION USING DEEP LEARNING
ย 
Ijetr011814
Ijetr011814Ijetr011814
Ijetr011814
ย 
GENERATION OF HTML CODE AUTOMATICALLY USING MOCK-UP IMAGES WITH MACHINE LEARN...
GENERATION OF HTML CODE AUTOMATICALLY USING MOCK-UP IMAGES WITH MACHINE LEARN...GENERATION OF HTML CODE AUTOMATICALLY USING MOCK-UP IMAGES WITH MACHINE LEARN...
GENERATION OF HTML CODE AUTOMATICALLY USING MOCK-UP IMAGES WITH MACHINE LEARN...
ย 
IRJET- Transformation of Realistic Images and Videos into Cartoon Images and ...
IRJET- Transformation of Realistic Images and Videos into Cartoon Images and ...IRJET- Transformation of Realistic Images and Videos into Cartoon Images and ...
IRJET- Transformation of Realistic Images and Videos into Cartoon Images and ...
ย 
IRJET-Implementation of Image Processing using Augmented Reality
IRJET-Implementation of Image Processing using Augmented RealityIRJET-Implementation of Image Processing using Augmented Reality
IRJET-Implementation of Image Processing using Augmented Reality
ย 
Video and Image Processing for Finding Paint Defects using BeagleBone Black
Video and Image Processing for Finding Paint Defects using BeagleBone BlackVideo and Image Processing for Finding Paint Defects using BeagleBone Black
Video and Image Processing for Finding Paint Defects using BeagleBone Black
ย 
iVideo Editor with Background Remover and Image Inpainting
iVideo Editor with Background Remover and Image InpaintingiVideo Editor with Background Remover and Image Inpainting
iVideo Editor with Background Remover and Image Inpainting
ย 
USING IMAGE CLASSIFICATION TO INCENTIVIZE RECYCLING
USING IMAGE CLASSIFICATION TO INCENTIVIZE RECYCLINGUSING IMAGE CLASSIFICATION TO INCENTIVIZE RECYCLING
USING IMAGE CLASSIFICATION TO INCENTIVIZE RECYCLING
ย 

More from IRJET Journal

More from IRJET Journal (20)

TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
ย 
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURESTUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
ย 
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
ย 
Effect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil CharacteristicsEffect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil Characteristics
ย 
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
ย 
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
ย 
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
ย 
A Review of โ€œSeismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of โ€œSeismic Response of RC Structures Having Plan and Vertical Irreg...A Review of โ€œSeismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of โ€œSeismic Response of RC Structures Having Plan and Vertical Irreg...
ย 
A REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADASA REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADAS
ย 
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
ย 
P.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD ProP.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD Pro
ย 
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
ย 
Survey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare SystemSurvey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare System
ย 
Review on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridgesReview on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridges
ย 
React based fullstack edtech web application
React based fullstack edtech web applicationReact based fullstack edtech web application
React based fullstack edtech web application
ย 
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
ย 
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
ย 
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
ย 
Multistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic DesignMultistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic Design
ย 
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
ย 

Recently uploaded

Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
amitlee9823
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
KreezheaRecto
ย 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
ย 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 

Recently uploaded (20)

chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
ย 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
ย 
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
ย 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
ย 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
ย 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
ย 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ย 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
ย 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
ย 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
ย 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
ย 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
ย 

IRJET- Compress Image without Losing Image Quality using nQuant Library

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 ยฉ 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3292 Compress Image without Losing Image Quality using nQuant Library Rishikesh Mhatre1, Prof. Shubhangi Mahadik2 1Bharati Vidyapeethโ€™s Institute of Management and Information Technology, Navi Mumbai, India 2Bharati Vidyapeethโ€™s Institute of Management and Information Technology, Navi Mumbai, India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract โ€“ This paper attempts to give best image compression technique which can be lossless image compression technique there are many library used for compressing the png image but many of them are lossy compression techniques which reduce image quality afterthe compression is done but nQuant library which can compress png image without losing its quality it perform 0 to 100 percent compression which can user select according percentage image size will compress with maintaining a proper aspect ratio and image quality. Key Words: Programmatically setting the nQuant compression, PNG, PNG Algorithm for Compression 1. INTRODUCTION As the demand is increasing for image processing for improving performance of any website rendering and it will take many websites to load slowly if image size is big and in government form submission they required less size image e.g 50kb is allowed, if the imageis ofpngformatimage then many websites fail to compress the png image size and if compression is happen the photo pixels get damaged and make image blurry it happen due to lossy compression techniques. This is applicable social networking like Facebook, WhatsApp, Instagram where theyusedthis kindofalgorithm to compress the image size to make page reload process faster but there some drawbacks that image is compressed looses its detailed quality to avoid this drawback we introduced one nQuant library which also implemented programmatically with these websites too. 1.1 Microsoft Nuget nQuant Technique nQuant is a .net color quantizer producing high quality 256 color 8 bit PNG images using an algorithm optimized for the highest quality possible. nQuant was originally developedaspartofalargereffortI have been developing called RequestReduce which isanhttp module that automatically minifiesandmergesCSSaswellas sprites their background images on the fly. I wanted the sprited files to be optimized and I was not satisfied with the size of the 32 bit images that the .net library was producing nor was the quantization resultoflikePNGQuantandPNGNQ of acceptable quality. I set outto create thisquantizerandthe results are images 3x smaller than their 32 bit originals with practically no perceptible quality loss. Thisalgorithm oftenproducesoptimizedimageswithless quality degradation than other quantizers due to its methodology of optimizing based on clusters of colors that are closely related to one another rather than simply finding the most used colors in an image. nQuant's algorithm takes Wu's three dimensionalRGBbasedquantizationstrategyand adapts it to work with transparent PNGs. How to use this library implement below code 1. Either download nQuant from this site or add it to your Visual Studio project seamlessly via Nuget. To use Nuget nQuant Libray, Install-Package nQuant from the Package Manager Console. 2. If you do not use Nuget, add nQuant to your project and add a reference to it. 3. If you are using C#, you would call nQuant as follows. var quantizer = new WuQuantizer(); using(var bitmap = new Bitmap(sourcePath)) { using(var quantized = quantizer.QuantizeImage(bitmap, alphaTransparency, alphaFader)) { quantized.Save(targetPath, ImageFormat.Png); } } 1.2 Microsoft Nuget nQuant Versions Version Downloads Last updated 1.0.3 233,511 1/25/2013 0.9.8 18,540 10/9/2011 0.9.6 639 9/11/2011 0.9.5 1,459 9/6/2011 2. Comparison between compression technique Method Advantages Disadvantages Wavelet a)High compression ratio b)state-of-the art c)low encoding complexity d)it produces no blocking artifacts a)Coefficient quantization b)bit allocation c)less efficient JPEG/DCT a)current standard a)Coefficient
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 ยฉ 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3293 b) good quality and less amount of compression c)comparatively fast with others methods quantization b)bit allocation VQ a)Simple decoder b)no coefficient quantization a)slow codebook generation b)small bpp Fractal a)good mathematical encoding frame b)resolution free decoding a)slow encoding Genetic algorithm a)capable of handlinn complexity and irregular solution spaces b)robust technique a)repeated fitness function evaluation for complex problem b)not more efficient nQuant a) RGB based quantization strategy b)work with transparent PNGs a) it is applicable for 32 bit image only 2.1 Image Compression Lifecycle Image Compression without loosing quality Image Compression with loosing quality 3. CONCLUSIONS We have summarized the characteristics of four up- to-date image coding algorithms based on Wavelet, JPEG/DCT, VQ, Fractal, Genetics approaches, nQuant. Any of the five approaches is satisfactory when the 0.5 bits per pixel is requested. However, for a very low bit rate, forexample0.25 bpp or lower, the embedded zerotree wavelet (EZW) approach is more applicable and superior to other approaches. For practical applications, we conclude that (1) Wavelet transform based compression algorithms are strongly recommended, (2) JPEG/ DCT based approach might use an adaptive quantization table, (3) VQ technique is not good for a low bit rate compression and it is slow processed, (4) Fractal approach should utilize its resolution-free decoding property for a low bit compression and slow in processing, (5) nQuant compression technique created for compressing 32 bit png images it is RGB based quantization strategy and work with transparent PNGs REFERENCES [1] https://compresspng.com/. [2] https://www.iloveimg.com/compress-image/compress- png. Other Compression Methods Compressed PNG Image with loss PNG Raw Image nQuant Compression Compressed PNG Image without loss PNG Raw Image
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 06 | June 2019 www.irjet.net p-ISSN: 2395-0072 ยฉ 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 3294 [3] Fundamental of Computer Graphics Book by Erik Reinhard, Kelvin Sung, Michael Ashikhmin, Michael Gleicher, Peter Shirley, Peter Willemsen, Stephen R. Marschner, and William B. Thompson. [4] https://ezgif.com/optipng. [5] https://www.websiteplanet.com/webtools/imagecomp ressor/ [6] https://archive.codeplex.com/?p=nquant