Many books on web development advise readers to save images such as clipart or ones with less than 256 colors in PNG format and to save photographs of real objects such as people that are made up of millions of colors in JPG format. The issue with PNGs (PNG-24), however, is their file sizes are considerably larger than JPG (at 80% quality) even though you can hardly tell the different in quality between a PNG-24 image compared to the same image save as a JPG with 80% quality. Therefore, my advice for saving website images is as follows:
This should help with your website loading time without sacrificing image quality.
Many devices are connected to each other over different cables and interfaces. But not all devices can transfer data at the same speeds. The device or connection with the lowest speed determines the maximum speed. Following are some common devices and their speeds.
Cell Phone Interfaces
Recently, I needed to run php from the command line on Windows. I had php in my PATH but when I ran the command, an alert window popped up saying “php.exe is not a valid win32 application.”. In my terminal / command line, the response I got was “Access Denied.” Somehow, the php.exe file size become 0 bytes. To fix this, I just overwrote that file with the original php.exe file (60 KB) and reran the command and it worked.
If you get this error, check the file size of your exe.
When developing websites, sometimes (unfortunately), not all assets, such as images, are available. In this case, you can use placeholder images using a service at www.placehold.it. For example, to insert an 350 px wide by 150 px high image, you use the following code:
Below is how the placeholder image looks
You can also change the color of the image and add text to it dynamically. More information at www.placehold.it