https://bugzilla.wikimedia.org/show_bug.cgi?id=51370

--- Comment #1 from Bawolff (Brian Wolff) <[email protected]> ---
I would suggest starting off, only scaling PNG files bigger than say 35MP. This
would make it only affect files that essentially already don't work, and thus
is unlikely to garner any criticism. (Technically the PNG scale limit is 50MP
currently, but things start to get expensive a bit before that, and I think
there are some images in the 35-50 MP range that run into memory limits, but
don't quote me on that).

Something like (untested):
$wgVipsOptions = array(
        # Sharpen jpeg files which are shrunk more than 1.2
        array(
                'conditions' => array(
                        'mimeType' => 'image/png',
                        'minArea' => 3.5e7,
                ),
        ),
);

Possibly also with the bilinear option (not sure about that)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to