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!
Suspended prison sentence for Craig Wright for “flagrant breach” of court order, after his false…
Cash-strapped south American country agrees to sell or discontinue its national Bitcoin wallet after signing…
Google's change will allow advertisers to track customers' digital “fingerprints”, but UK data protection watchdog…
Welcome to Silicon In Focus Podcast: Tech in 2025! Join Steven Webb, UK Chief Technology…
European Commission publishes preliminary instructions to Apple on how to open up iOS to rivals,…
San Francisco jury finds Nima Momeni guilty of second-degree murder of Cash App founder Bob…