The Mozilla Foundation is seeking to improve the loading speeds of web pages with the launch of its ‘Mozjpeg’ Project.
The aim of the project is to “provide a production-quality JPEG encoder that improves compression while maintaining compatibility with the vast majority of deployed decoders.”
The project has developed a faster JPEG encoder that claims to to reduce file sizes by up to 10 percent on standard JPEG images.
JPEG is the most commonly used photography and image format used on the Internet (ahead of GIF and PNG files). Indeed, the file format is also one of the most commonly used by all types of software, including Microsoft Office and Adobe Photoshop. So anything that can be done to reduce the size of JPEG images could dramatically improve loading times of web pages.
But according to Aas, production JPEG encoders have largely been stagnant in terms of compression efficiency. So the Foundation talked with a number of engineers to see if JPEG encoders have really reached their full compression potential after 20+ years.
“We concluded that the answer is ‘no,’ even within the constraints of strong compatibility requirements,” Aas wrote. “With feedback on promising avenues for exploration in hand, we started the ‘mozjpeg’ project.”
Mozilla has therefore released version 1.0, which is a fork of libjpeg-turbo (a popular open-source JPEG codec) and combined it with ‘jpgcrush’ (a popular Perl script). Mozilla said it can now reduce file sizes, typically by 2-6 percent for PNGs encoded to JPEG. However with average JPEG file sizes, it achieved an average 10 percent reduction using a sample of 1,500 JPEG files from Wikimedia.
“It does this by figuring out which progressive coding configuration uses the fewest bits,” said Aas. “So far as we know, no production encoder has this functionality built in, so we added it as the first feature in ‘mozjpeg’.”
And the next step is to improve the encoding by making use of ‘trellis quantization‘, which is an algorithm that is typically used for video compression purposes.
The news that Mozilla is seeking to improve the loading speeds of web pages will be welcomed by many Internet users around the world. Less welcome news however is Mozilla’s intent to incorporate advertising to its Firefox web browser, through a new feature called ‘Directory Tiles’, which will replace some of the empty tiles which appear when opening a new tab.
Are you a Firefox enthusiast? Take our quiz!
Northvolt files for Chapter 11 bankruptcy protection in the United States, and CEO and co-founder…
Targetting AWS, Microsoft? British competition regulator soon to announce “behavioural” remedies for cloud sector
Move to Elon Musk rival. Former senior executive at X joins Sam Altman's venture formerly…
Bitcoin price rises towards $100,000, amid investor optimism of friendlier US regulatory landscape under Donald…
Judge Kaplan praises former FTX CTO Gary Wang for his co-operation against Sam Bankman-Fried during…
Explore the future of work with the Silicon In Focus Podcast. Discover how AI is…