-
So is the problem that the picture is too big? Do I need to optimize them. The reason I am asking is because I have several images that this is happening with. Should I optimize them all?
-
-
Well, there are at least four issues here:
- The physical dimensions of the image.
- The location of the image.
- The integrity of the image.
- The byte size of the image.
Now, the physical dimensions are its width and height in pixels. They should be the same as the dimensions you are trying to display it at on the web. They are also what is changed when you 'resize' an image in a decent image editing program. If you have a 300 x 400 image and you are trying to put it in a 150 X 175 spot, it will either become distorted or cropped (cut off) in the browser, depending upon how the spot was marked up for it in the HTML code.
The location of the image is its actual address on the web. This must be listed correctly in your source code, whether HTML or javascript, otherwise the browser cannot find the image.
The integrity of the image is simply whether or not it was saved successfully by a device and/or a program as the valid format type of file that you are indicating that it is by its extension, and not damaged later. Valid types for the web are GIF, PNG, and JPG. BMP is also valid, but usually too wasteful. There may be others, the main types are the first three I mentioned, and their extensions are .gif, .png, and .jpg, respectively. Just giving an image one of these extensions doesn't make it one of these file types though, it must be saved by a program or device as that file type.
The byte size of an image is how large it is on your disk. Byte size also affects download times, so it affects how fast an image can load when viewed on the web. Obviously, you would want to optimize an image to be of the smallest possible byte size, while still looking as good as it can. It usually is a trade off, the less bytes, the less good it can look. Web images do not have to be crystal clear though they shouldn't be overly blurry or lacking in gradations of color (in the case of black and white, of shading). Different types of images lend themselves to being able to be rendered best at smaller byte sizes in various of the web formats I previously mentioned. Sometimes you can just know what format to use, other times you need to experiment. Once you pick the format, each has it own ways it can be optimized, and choices may also be made at that level. A good image optimizing program is the most effective tool for this process, but any decent image editing program like The Gimp or Paint Shop Pro can do the work if you know what you are doing.
-
-
Thank you for your help. I took the image into GIMP and changed it's size, which is doing the trick.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks