Image quality for client side resizing is hardcoded

Status
This content is read-only, or is not open for further replies.

Kirby

Guest
offline
The image qulity (0.85) for client side resizing is hardcoded somewhat deep inside XF.ImageTools.resize.

With XenForo 2.2 it was rather easy to change to quality (via a class extension), but doing this with client side resizing currently seems to be much more invloved.

Could XF.ImageTools.resize be changed to smth. like

Code:

Code:
XF.ImageTools =
{
    getQuality (file) { return 0.85 },

    resize (file, maxWidth, maxHeight, asType, quality)
    {
        return new...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom