Please have in mind that in this example we're reducing the quality of the file, not the image dimensions. We can go further and create a smaller file size by adjusting the percentage in the same command via: convert test.jpg -quality 30% test-30p.jpg This is going to reduce the image's quality by 50% and deliver a 938.4 KB <= (Note: KILOBYTES, not even a Megabyte) filesize. This is what we need to do in order to "compress" an image. Let's now play with some other ImageMagick convert commands in order to create smaller file sizes: convert test.jpg -quality 50% test-50p.jpg This is going to convert the high definition PNG format into a "compressed" JPG format, which by itself is a smaller file! It goes from 9.5 MB to 2.4 MB.īut, 2.4 MB is yet a big file size. So, let's drop the next in a terminal: convert seminario-tabloide.png test.jpg So, how can I use this image in a website, without waiting years in order to upload and waiting some other years in order to show it in my website? The file should be compressed.Īnd when we talk about "compression" we explicitly need to change it's quality in order to make it usable for the case we are facing. So that's a different scenery which I won't cover in this explanation. Nevertheless, the image size and grid resolution is really useful for a high definition printing. In the file properties window we can see this is a 9.5 MB file, which will delay a lot to upload and will delay a lot in order to render on screen when published in a website. High Definition Pictures, with resolutions over 1024px may have a big file size. Let's first understand what a "lightweight picture" should be.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |