AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Overkill gif3/2/2023 ![]() Photoshop “just works” but a) it’s a really expensive way to just crop an image and b) do I seriously have to wait 37 seconds for it to initialize just to open an image? ImageMagick is probably overkill Resizing with Photoshop works but its slow If this is an ecommerce site, then suddenly your site is going to slow down way more than necessary and your users, especially on mobile, are going to go somewhere else. The problem here is that while this CSS hack will display the image at 200×150, the user will still be downloading the entire 800×600 image. Just a bit of playing background properties and you’re done. Take this example from Stack Overflow of someone trying to use CSS to display an 800×600 image resized and cropped to 200×100. “Resizing” with CSS is easy, but page load suffersįor CSS, the advantage is it’s easy. Like anything, these different solutions have pros and cons. Typically, to resize, fit and align images you can use something simple like CSS to display the part of the image you want, Photoshop to manually crop or something complicated like Graphicsmagick or Imagemagick to automate transformation. Cool, but what about cropping, filters, facial detection…Ĭan’t I use CSS… Or Photoshop… Or Graphicsmagick… instead?.How to resize any image with just a URL.Resizing with Photoshop works but its slow.“Resizing” with CSS is easy, but page load suffers. ![]() Can’t I use CSS… Or Photoshop… Or Graphicsmagick… instead?.
0 Comments
Read More
Leave a Reply. |