Wordpress Discussion

Out of context: Reply #109

  • Started
  • Last post
  • 164 Responses
  • scruffics0

    The company I work for got an external agency to build their new website. Agency is doing it in wordpress and we have just received a link to the staging site so we can start populating it with content.

    Is it just me or its it actually weird that when i upload a new image to the media library it doesn't automatically get resized into S, M, L and Full sizes?

    I thought that was an inherent WP functionality which is easy to customise to match the theme's image size requirements. I've just raised the subject with our account manager and was told that they have never done that functionality for any of the websites they have ever built, and that they could look into it for us for a bunch of extra money or, alternatively, that we could set up a Photoshop script and then process and batch upload images on our end.

    Those can't be our only options, can they?

    • It's quite easy to set up custom image sizes in functions.php or using a plugin. Seems odd they would charge a lot for that.
      Or CSS can force the sizes.
      fadein11
    • that's what i thought - just a few lines of code in functions.php and you can have as many sizes as needed.scruffics
    • CSS works too but we are trying to optimise the page load times and would like to have appropriate size images where neededscruffics
    • yep CSS as a last resort and not if images are huge obvs.fadein11
    • thanks fade! does any one else have anything to add?scruffics
    • It's literally a single line of code. https://developer.wo…monNom
    • But that's only for new images that are added, does not work retroactively. So depending on your needs, you might need to batch process images.monNom
    • I got the impression no content had been added yet. But yep not a solution if content already in.fadein11
    • forcing css changes effects optimizationpockets
    • it does automatically, you don't see them in the media library...but you can load them by thumb,medium, large or declare your own img size if with ^phpuan
    • What uan said...if you look in the uploads folder you will see they are already there.yuekit
    • The agency saying "they could look into it for a bunch of extra money" is hilarious. This is very basic stuff.yuekit
    • https://www.hostinge…yuekit
    • they want custom sizes.fadein11
    • easy to do but the agency are saying it's hard. weird.fadein11
    • in my experience, saying its a bunch of extra money just means you dont want to fucking bother, but if someone will pay you a bunch, you'll bother.mantrakid

View thread