grav-plugin-admin icon indicating copy to clipboard operation
grav-plugin-admin copied to clipboard

admin.yaml pagemedia resize_quality - best value is 0.99 not 1

Open kittyfishfrommars opened this issue 1 year ago • 0 comments

Description

.jpg / .jpeg images are not being resized and subsequently displayed in Admin Panel -> Page -> Page Media section, if admin.yaml contains the (erroneous) following line:

pagemedia:
  resize_quality: 1

The correct highest possible value is 0.99.


Cause (apart from my own stupidity)

  • The documentation is unclear here.

Proposed solution

update all language strings and documentation (if any)

from RESIZE_QUALITY_HELP: "The quality to use when resizing an image. Between 0 and 1 value." to RESIZE_QUALITY_HELP: "The quality to use when resizing an image. Between 0.01 and 0.99 value."


For reference:

kittyfishfrommars avatar Jan 23 '24 18:01 kittyfishfrommars