Web Site Optimization: How To Speed Up Your Web Site By Minimizing Your GIF and PNG Image Bit-Depth

Are bloated images slowing down your web site and causing you lost business? Images comprise over 50% of the average web page so putting them on a diet is essential to improving web performance. One of the best ways to optimize GIFs and PNGs is to minimize the "bit-depth" or the number of colors within your images.

For palette-based formats like GIF and PNG, file size is directly related to the size of the color palette, or the number of colors in the image. As the number of colors in an image crosses a power of two, the file size jumps. A 33-color image must use a six-bit palette, while a 32-color image can use a 5-bit palette. Smaller palettes mean smaller codes (representing pixel patterns), which makes for smaller files. So minimizing the number of colors in index-color images like GIFs and PNGs will minimize file size.

The compression schemes used in GIFs (LZW) and PNGs (Deflate) are dictionary-based encoding algorithms. Dictionary based compression algorithms substitute shorter codes for longer patterns of strings within the data stream. Pixel patterns (substrings) in the data stream found in the dictionary are replaced with a single code. If a substring is not found in the dictionary, a new code is created and added to the dictionary. Compression is achieved when smaller codes are substituted for longer patterns of data.

The code size is based on the number of bits per pixel, and depends on the maximum length code within your dictionary. Thus the smaller your bit-depth, the smaller the codes representing your pixel pattern strings, and the smaller the file.

Choosing the right format for your images is the first step in optimizing web graphics. At lower bit-depths, banding can appear in smooth-toned images. Try quantizing your image to different palettes to minimize banding.

PNG Compression

PNG uses the deflate compression algorithm which is a newer, more efficient cousin of LZW. Deflate is designed to be free of patent problems. Deflate is a combination of the LZ77 algorithm found in zip programs like WinZIP and gzip, and Huffman coding. Deflate typically compresses files 20 to 30 percent smaller than LZW, which is the difference you'll find between gzip and compress. PNGs use a similar substitution technique, but are generally 5 to 25 percent smaller than GIFs, although there are exceptions. In addition to horizontal "scan-line" pattern substitution PNGs sometimes substitute for vertical patterns. PNG can also truncate color palettes. In general, the smaller the color palette, the smaller the overal file size.

Conclusion

To minimize the file size of palette-based image formats like GIF and PNG, minimize their bit-depth, or number of colors. Each time you pass a power of two, file size jumps higher. By minimizing the number of colors, and maximizing the flat-color areas you will create smaller, more efficient images destined for the Web.

Further Reading:

LZW Data Compression


http://www.dogma.net/markn/articles/lzw/lzw.htm


Mark Nelson breaks down the LZW compression algorithm for Dr. Dobb's Journal of October 1989.

Multimedia: Use Lossy Compression for Smaller GIFs and PNGs http://www.websiteoptimization.com/speed/tweak/lossy/


Lossy compression lets you squeeze more bytes out of your GIFs and PNGs. Lossy compression increases identical pixel patterns to improve compression in indexed-color images.

Multimedia: Use Weighted Optimization


http://www.websiteoptimization.com/speed/tweak/weighted/


Weighted optimization or regional compression applies different degrees of compression to different areas of your image. By varying the quality within images you can improve file size.

Optimizing Web Graphics


http://www.websiteoptimization.com/speed/12/


Chapter summary from Speed Up Your Site, shows how to correct, optimize, and compress images for minimum file size and maximum quality.

PNG Home Site


http://www.libpng.org/pub/png/


Greg Roelofs site devoted to all things PNG.

About The Author

Article by Andy King, author of the popular new book titled "Speed Up Your Site ? Web Site Optimization". Visit Andy King's web site to learn the best Web Site Optimization practices for higher traffic and speed guaranteed. www.websiteoptimization.com

In The News:

PHP VS JAVA: Which Is The Best Option For Web Development?  Promotion WorldDifference Between PHP VS JAVA To develop a website, the developers need a programming language which is best suited. PHP and Java are the most.
How To Find A Stellar Web Development Agency  ForbesWhen you're looking to hire an agency, act as if you're hiring an employee.
Why use Vue.js for UI web development?  JAXenterIf you are looking to start a new project and you are not sure if Vue.js would be the right choice for you, check out this overview of the popular framework.
Internships 2019: Applications open for internship with Department of Health & Family Welfare, Delhi  Scroll.inThe last date to apply for the 3-month internship for 'Project Connection-Aid' is 24 June, 2019.
Know About Role of PHP In Web Development  Customer ThinkIt is a well-established fact now that for any company to flourish it needs to have its presence on the digital platform. While social media can be the right place to ...
This cheap online course will teach you all about front-end web development  MashableInteractive buttons. Scannable layouts. Flashy graphics. Beautiful typography. Elements of a website — or any digital product for that matter — that make you go ...
The Complete Front-End Web Development Course  InverseThe Details. Start learning in-demand programming skills & tools; Access 117 lectures & 14 hours of *content* 24/7; Dive into web development basics w/ HTML ...
Looking For Coding Jobs? These 8 Programming Languages Are In Highest Demand Right Now (2019 Data)  Trak.inCoding jobs are evergreen jobs: But the platforms keep on changing. Here are the 10 programming languages which are in highest demand right now (2019 ...
Website Development Handoff Checklist: What Your Developer Needs to Be Successful  Business 2 CommunityWebsite mockups are completed and client-approved. Pages and templates have yet to be built. It's time for a website development handoff. A website ...
Django Vs Flask: A Detailed Comparison Between Python's Most Popular Frameworks  Analytics India MagazineHere is a detailed comparison between the two web frameworks of Python called Django and Flask.
Top 12 Python Web Frameworks of 2019 Programmes Should Know  Analytics India MagazinePython is a very versatile programming language. A new developer survey about Python by the Python Software Foundation and developer tools vendor ...
How IoT Affects The Future Of Web Developments  ReadWriteATMs, Apple Watch, Fitbit, Self-driving cars and more are part of a list of devices using IoT is endless. The concept of IoT began years ago; we just didn't use the ...
The Basics Of Web Development That Will Shorten Your Time  TheUSBportWeb development means building and maintaining websites and is the work that takes place in the background and that allows a website to have an impeccable ...
Best Web Development Company 2019 - Customer Experience – Winners at DCE Awards  IT News OnlineMumbai, India, June 05, 2019 --(PR.com)-- Website Developers India Pvt. Ltd. is the proud winner of the Best Web Development Company 2019 - Customer ...
Top 5 Programming Languages For Machine Learning  TechopediaWhile there are several programming languages that work especially well for machine learning, each of them comes with unique advantages and ...
Top Java Web Development Frameworks in 2019 - WhaTech  WhaTechTop 10 Java development frameworks. Java is a standout amongst the most famous programming dialects. In a not so distant future, there is somewhat chance ...
What is Web Scraping & How Can It Be Used in App Development?  iLoungeWeb scraping, in layman's terms is capturing data on websites. All it takes is a single command or code, called a scraper, to do the job. First, the code sends a ...
Jack Dorsey Hints at How Square Crypto May Support Bitcoin's Code  CoinDeskAfter revealing that his payments firm Square is building a small team to help with bitcoin and cryptocurrency development back in March, CEO Jack Dorsey has ...
6 Software Development Concepts You Can Learn Through Online Courses  TechopediaWhen it comes to understanding the process of software development, there's a lot to learn. These courses can help you up your software development game.
Introducing Voila that turns your Jupyter notebooks to standalone web applications  Packt HubLast week, a Jupyter Community Workshop on dashboarding was held in Paris. At the workshop, several contributors came together to build Voila, a package ...
New report shows shakeup amongst top programming languages  SDTimes.comJavaScript and Java continue to dominate the software development world as the top programming languages, but newly released reports indicate the times are ...
JRNI opens web development office in Manchester | Business  The Union LeaderMANCHESTER — A customer engagement company whose clients include U.S. Bank, LEGO, Nordstrom and Levi's has chosen the Queen City for its web ...
The Top 7 Qualities Of A Successful Website – Plus, The 23 Best Web Development Agencies, According To DesignRush  STL.NewsNEW YORK (STL.News) - Studies show that nearly 40 percent of consumers will leave or stop engaging with a professional website if it takes too long to.
How Big Data is Transforming Web Development for the Better In 2019  Irish Tech NewsBy Sagar Sharma, Web development is undergoing a significant revolution. Until now, web developers used to build applications on the basis of research and.
Web Development New York Agency, Huemor, Discusses the Cost of an Ecommerce Website Development Project  Yahoo FinanceWhat kinds of costs go into ecommerce web development anyways? How can you create the best-looking, best-functioning ecommerce website at the ideal price ...
UK-based firm opens web development office in Manchester  New Hampshire Business ReviewCustomer engagement company JRNI Inc. has opened its first U.S. web development office at 66 Hanover St. in Manchester, part of what it calls an aggressive ...
2019's Top Programming Languages for Advanced Analytics, Machine Learning and Data Science  Analytics InsightData science has attracted many followers, a fact which is evident from the huge number of registrations in data science seminars, and workshops and not to ...
12 Critical Items to Check Off Your List Before Launching a New Website  Business 2 CommunityIf you've been involved in a website project before, you know how nerve-racking it can be to finally give the go-ahead to “flip the switch” from the old website to ...
Web Development Company Singapore  WhaTechiBrandox™ a professional and affordable custom Website Development Services Company in Singapore offers feature-rich and fully responsive customizable ...
11 Chicago Web Design and Development Agencies To Know  Built In ChicagoStunning visuals. Informative, yet gripping, *content*. Lightning fast load speeds. One needs these things to create a successful website. It's all about creating ...
The best new features in Python 3.8  InfoWorldFrom a powerful new assignment syntax to under-the-hood overhauls, Python 3.8 steps toward a more modern Python codebase.
Here’s How Housing Crunch Is Reshaping The Size Of Cities Across The Country  HuffPostThe nation needs another 6 million homes near the new jobs created in the past decade.
Web developer Wix creates 100 jobs as Dublin office opens  Newstalk 106-108 fmA cloud-based web development platform has created 100 jobs in Dublin with the opening of its new...
Better Cannabis Stock: CannTrust Holdings vs. Charlotte's Web Holdings  The Motley FoolWhich stock wins in a matchup between an up-and-coming Canadian cannabis producer and a U.S. hemp CBD leader?
4 Useful Tools for Web Development  TheUSBportToday, websites can be massive and complex. Even the most experienced web developers need to have a good toolbox to do their job well. Therefore, here is a ...
Square Hires Ex-Google Director as First Member of New Crypto Team  CoinDeskPayments company Square has hired former Google director Steve Lee as the first member of its new crypto team. A Square Twitter account teased the news ...
Web Development Company NYC, Huemor, Discusses the Top WordPress Plugins Your Site Should Have  Yahoo FinanceNEW YORK, May 29, 2019 /PRNewswire/ -- With thousands of WordPress plugins to add to your website, it's important to know which plugins will enhance your ...
Top Reasons Why Full-Stack Developers Can Help SMBs  Business.comFull-stack developers are an ideal solution for some small businesses. As managers of front- and back-end processes, full-stack developers can do it all.
What are the latest web development Trends For businesses In 2019?  YourStory.comIt's impossible to go along with web development trends; because it is subject to change. Rarely, a week passes without any release of a new JS framework, ...
Top Web Development Trends 2019  YourStory.comWeb Development Trends 2019 Do you know global internet users number have surpassed 4 billion in 2018? It is found in a recent study by We Are Social and ...
UMPI to launch new cybersecurity degree program in fall 2019  The CountyThrough collaborative efforts with the University of Maine System, the University of Maine at Presque Isle is ready to begin a new bachelor's degree program in ...
Graduate/Junior PHP Web Developer  Prolific NorthWe are a friendly, developer-run web agency based in Manchester's Northern Quarter, looking to expand our small team. We're seeking a graduate or ...
Top of the List: Central Ohio’s busiest insurance agencies and brokerages  Columbus Business FirstWhich Central Ohio insurance agencies and brokerages wrote the largest volume of premiums in Central Ohio last year?
Things to consider before going into web development  JAXenterWe normally don't offer beginners' guide for aspiring developers but this time around we are making an exception! Amit Jat has a set of extremely useful ...
Messaging Giant Telegram's ICO Token Is at Last Going on Public Sale  CoinDeskMessaging app giant Telegram's gram token, previously sold to accredited investors in one of the biggest-ever ICOs, is at last to be offered to the public.
Nash Prepares to Launch Beta Version of Decentralized Exchange  CoinDeskWith a mission of “bringing distributed finance to everyone,” five open-source blockchain developers have come together to form a distributed finance platform ...
Enigma Launches Second Testnet for 'Secret Contract' Blockchain  CoinDeskData privacy startup Enigma is officially launching its second test network for ethereum developers. While the code for the second testnet developer release has ...
A Quick Primer on Managing Your Web-Development Tasks  EntrepreneurNeed to modify your website or app? Here are the tips you'll need to do that right.
Internshala Trainings launches The Web-Dev Battle - A web development contest  Knn IndiaInternshala Trainings has launched The Web-Dev Battle for the students who are passionate about building their ideas from scratch using their creativity and ...
Top 10 Image Formats That Are Best for Web Development  YourStory.comWeb application development is one of the biggest trends in this era because now a day's software has tons of functionality that cannot work properly on our ...
Stefan Judis, a Twilio web developer, on responsible web development with HTTP headers  Packt HubAt this year's JavaScript Fwdays, Stefan Judis, who works at Twilio as a frontend developer, talked about how web developers can make their sites secure with ...
Are You Missing This Important Puzzle For Web Development Success? – Test Driven Development  YourStory.comAs a Web Development Company, there are many aspects of your business that determine your success. You can choose to create your application as cheap as ...
Cosmic JS wants to simplify web development so you can focus on content  TechCrunchIf you are a web developer, you know how complex many of the traditional web *content* management systems have been. One of the big problems has been ...
John McAfee's New Crypto Trading Platform 'Magic' Goes Live  CoinDeskNoted cybersecurity expert and eccentric crypto fan John McAfee has just launched a cryptocurrency trading platform. Dubbed “Magic,” the site is touted as ...
The Crucial Role of AI in Web Development  Analytics InsightArtificial intelligence is undeniably no longer a buzzword in the web development space. AI in web development is used to design automation, integrating into ...
Web Development on an iPad  Laravel NewsThe idea of working entirely from an iPad has always appealed to me. The portability, the battery life, and of course the touch screen makes it an excellent device ...
Solve Web development issues to Drive Business to Your Website  Customer ThinkHave you ever had to develop a website? I do not mean to sit down to program it but have to, at least, order it and work with the person or team that carries it ...
Creative UI/UX approaches to deliver high-performance Web Development solutions  Customer ThinkOver time, software design has had different approaches that have evolved and become enriched both in their tasks and in the variety of possible techniques to ...
Top 5 WordPress Development Companies in the World  YourStory.comAre you searching for top WordPress development companies? We are providing you the list of top and best WordPress development companies in the world.
Crypto Developer Komodo 'Hacks' Wallet Users to Foil $13 Million Theft  CoinDeskCryptocurrency wallet developer Komodo has effectively hacked its own customers to avert an attack that could have resulted in the theft of funds worth nearly ...
Harness web development skills to create better desktop applications  The GuardianIntegrating best of breed desktop applications from Adobe Creative Suite with web tools can provide a better experience for creative staff. Sakib Supple.
Internshala Trainings launches The Wed-Dev Battle — A web development contest  APN NewsAn opportunity for the students of India to learn the top in-demand skill and earn rewards worth INR 1 lakh. Internshala Trainings has launched The Web-Dev ...
AI Needs to Develop to Impact Web Design  Business.comArtificial intelligence has had a big impact on web design and development, but it still has a long way to go.
10 Topmost Web Design & Development Companies in Chennai – 2019 [Updated List!]  YourStory.comThe list of Top 10 Web Design & Development Companies in Chennai is sorted out through a research methodology. These companies are well verse in Web ...
Master web development with this JavaScript master class  Boing BoingWhen it comes to website development, JavaScript is the language that underlies it all. If you want to learn that language well enough for a career, you'll need ...
Learn Full-Stack Web Development With 80% Off This JavaScript Bundle  InverseThis E-Degree program has been designed as a one-stop solution for learning web development with JavaScript and other crucial programming languages.
5 Ways in Which Data Science Is Revolutionizing Web Development  Analytics InsightTechnology is a highly dynamic field where new advancements keep coming every day. The data is the next big thing about this modern digital age.
What Skills Should You Look for in a Web Developer?  Customer ThinkIntroduction. Choosing a web development company is one of the most important decisions a business can make in today's marketplace. Simply put, how a ...
Napster Creator’s Blockchain Firm Helium Releases IoT Hotspots  CointelegraphHelium releases blockchain-based hotspots with Wi-Fi and sensor capabilities, and intends for them to eventually provide a network of seamless IoT coverage.
Binance to Stop Serving US Traders Following Announcement of US-Dedicated Platform  CointelegraphMajor crypto exchange Binance announced today, June 14, that it has updated its terms of use, which notably includes a restriction of services to United ...
What makes Laravel the most Preferred PHP Framework for Web Development  Customer ThinkOne of the most daunting tasks for any business is choosing the right PHP development framework to build a robust web application. PHP frameworks are not ...
Web Development: What's Big In 2019?  HackadayI try to keep up with web development trends but it's hard to keep pace since it's such a fast evolving field. Barely a week goes by without the release of a new JS ...
7 Most popular and best Programming Languages | Learn To Code  WindowsAbleDo note that this list has been compiled on the basis of popularity, demand and flexibility of programming language. If you do not find any particular ...
Safari Technology Preview release 83 now available for macOS Mojave and macOS High Sierra  Packt HubThe team at WebKit announced that Safari Technology Preview release 83 is now available for macOS Mojave and macOS High Sierra. Safari Technology ...
Trends You can Expect in Web Development for 2019  Customer ThinkThe current generation of website developers is ideal employees in consideration of web development spectrum. Most of the modern people respond quickly to ...
Tech internships in IoT, web development social media; highest stipend Rs 15,000  The Indian ExpressHere is a list of internships in the technology domain, from the latest internet of things (IoT) to social media, Bangalore has many openings. Students with ...
Korea's Biggest Bank Is Preparing to Custody Digital Assets  CoinDeskKB Kookmin, the largest bank in South Korea, is preparing launch a digital asset custody offering. According to a report from CoinDesk Korea, the institution is ...
JavaScript and Web Development InfoQ Trends Report  InfoQ.comThis InfoQ Trends Report looks at the current trends with JavaScript, HTML, CSS, and web development, exploring technologies and options gaining further ...
Yale, Flatiron School create web development bootcamp for summer session  Yale NewsYale Summer Session is collaborating with Flatiron School to offer a Web Development Bootcamp for Summer 2019, which will carry two Yale College credits, ...
Web development trends 2019 - Ponder on them to make a difference  ITProPortalThe world of web development experiences demand constant transformation every year, whether it is related to tools, services, coding, languages, or designs.
These are five high-paying programming jobs right now  TechRepublicHere are the developer roles that careers *service* Dice found had high average salaries during 2018.
How AI is reshaping web development | Articles | Big Data  Innovation EnterpriseHow AI is enabling are reshaping web development and giving developers everywhere hope about the future of tech.
Lean Web Development with the Best Teachers Online  Digital InspirationMeet the best online teachers for learning modern web development including React, TypeScript, JavaScript, Golang, Flutter, Nodejs, Docker and more.
Done Role of IoT in Web Development  Customer ThinkWith the increasing advent of technology and the ever-changing demands of people as well as businesses, there has been a rise in technologies which have ...
How Artificial Intelligence is reshaping web designing and web development?  Express ComputerBy Ankit Gupta, CEO and VP, WeblinkIndia.net. The modern industries follow the consumer-driven approach, where customer experience has become the ...
Know about the current trends in web development  Customer ThinkIn case of web development, you may have probably heard that the only constant is the change. It is an industry-defining statement as web development keeps ...
How will AI change the web development in future?  Customer ThinkAI is present everywhere – from chatbots to virtual assistants, AI is used in day to day activities. Virtual assistants like Siri and Cortana are helping the users by ...
This $41 course package can get you hired as a back-end web developer  The Next WebFront end developers get all the glory. Their work is always right there in a user's face with all that HTML and CSS goodness. But those in the know know that the ...
How to become full-stack web developer  JAXenterIf you're looking for a way to become a full-stack web developer, and amplify your chances of landing a well-paid job, here is the ultimate guideline.
10 Essential Question to Ask Your Web Developer  Business.comAsking the right questions when choosing a web developer can help you find someone who understands your vision and can give you the website you want.
Learn Web Development for Free With App Academy  LifehackerCoding school App Academy has opened a free online interactive version of its 12-week curriculum. That's a pretty good deal, since the Academy's in-person ...
Score 9 courses on back-end web development for just $41  MashableAt the risk of sounding totally high: Websites are sort of like restaurants, when you think about it. Stick with us. You've got your front-end developers, who function ...
Future of web development in India  Daily News & AnalysisFuture of web development in India - Web development, as a career, has witnessed a boom all over the world, including India, since the time e-commerce has ...
Fantastic 4: Collection of Best JavaScript Frameworks for Businesses in 2019  YourStory.comThe dynamism of the web development market demands for the right choice of framework. JavaScript frameworks are the right choice for your next ...
6 Reasons Why Angular is Better for Web Development  CIOReviewIn this digital era, the market is witnessing the ever increasing demand for web developers. There are millions of websites on the internet, and the numbers are ...
5 Common Questions About Website Accessibility  TechopediaA company's website is the virtual portal to their business, but many limit their audience by neglecting accessibility features.
Web Development Issues: 7 Reasons Why Your Website Isn’t Driving Business  Business 2 CommunityIs your website failing to drive business? You may be having problems with your web development. Read more here. website development. You launched your ...
5 Benefits of Android Web Development  NewsWatchAmong all of the directions, where a base language for development is Java, app and web development for Android developers are the most undemanding to ...
App Development and Design Trends that will mark 2019  YourStory.comIntroduction One of the most significant technology markets is the mobile application division as proven by the Statista report that predicted that mobile apps ...
The new new web  TechCrunchOver the last five years, almost everything about web development has changed. Oh, the old tech still works, your WordPress and Ruby On Rails sites still ...

Tell me what your website does!

You know exactly what your organisation does and what your... Read More

The Importance of Website Stats to You

One of the best tools you have as a webmaster... Read More

How To Write More Powerful Online Text

Although there are significant differences among the various types of... Read More

Business Website Building Do?s and Don?ts

First, using a lot of web graphics, flash, banners and... Read More

How Improving Your Sites Usability Can Increase Your Buyers by 40% and Boost Each Order By 10%!

With all of the factors involved in designing and building... Read More

Building a Web Store on Shoestring Budget in less than Four Hours

Starting a business online is no longer as difficult as... Read More

How Web Templates Are Helping Online Businesses to MultiplyTheir Income

Web templates by nature are created to aid and ease... Read More

Increase Hits to Help Increase Your Business

In this day and age most businesses consider having their... Read More

Unlocking the Power of Your Website!

Why do some web sites reap huge benefits while others... Read More

Building eCommerce Websites that Work - Part 2

Succeeding with an eCommerce website is a dream for many... Read More

Why Should Your Business Go O.N.L.I.N.E.

Optimize your time. How much time each day must you... Read More

What Business Owners MUST Know BEFORE They Commit To Having A Web Site

Q1.Why would I need a web site? A1.- Improve my... Read More

You Cant Just Build A Website And Hope It Works!

Like any area of business your website needs some effort... Read More

Guidelines for Web Page Optimization

Below, I have listed 8 simple steps that you can... Read More

Dreamweaver 8 Preview

August 8 2005, Macromedia announced a release of Studio 8.... Read More

The Internet Road Map

1) Data CaptureOne easy way to collect e-mail addresses and... Read More

Five Essential Questions to Answer Before Creating Your First (or second...or third) Website

Right after the thought, "I need a website," people usually... Read More

Abandonment - Why Visitors Don?t Turn Into Customers

Every good Internet business understands the value of conversions versus... Read More

Develop a Solid Website Presence

Starting an internet business can be confusing to non-veterans. The... Read More

Are You Losing Sales Because of These 4 Simple Website Mistakes?

Losing website sales and traffic is sometimes simply a case... Read More

Let Marketing Manage Your Website Content

The definition of the phrase "Content Management" depends on what... Read More

Give Your Business a Cash Infusion

Whether you have your own business already, or are looking... Read More

The Power Is In The Pipes: How To Get Maximum Leverage From Your Website

What is the most important part of your online business?Many... Read More

Five Reasons You Have to Stop Your Web Site

That's right. Your method, behavior and strategy you are now... Read More

How To Make Your Website More Successful? (Part I)

Building a website and getting it online is easy. Driving... Read More