eighteen73 / wordpress-thumbor

WordPress plugin to serve media via a Thumbor server
MIT License
0 stars 0 forks source link

Missing Image srcset #1

Open DanielHudson2 opened 1 month ago

DanielHudson2 commented 1 month ago

We aren't able to serve images using srcsets to make them responsive because we disable the generation of the image sizes within thumbor, because there are no sizes WordPress can't provide a srcset and you also are unable to set a "Resolution" on image blocks.

Thumbnail generation is disabled on upload due to the additional load it puts on uploading an image but ideally we need a way of generating them even if its just manual so it can be done on a per image / per size basis.

DanielHudson2 commented 1 month ago

Unsure on feasibility without more research but 2 potential workarounds:

  1. we generate thumbnails at the point an image gets used rather than on upload to prevent additional cpu load by bulk uploads
  2. we modify the block to force the resolution dropdown to appear and generate the specific size selected at that point