Mailing List Archive

Can MediaWiki scale images bigger than the source image?
The usual error.

> Error generating thumbnail
> Error creating thumbnail: Image was not scaled, is the requested width bigger than the source?

It's true.

But is there some setting or extension to permit doing that?

Cheers,
Patrick
_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
Re: Can MediaWiki scale images bigger than the source image? [ In reply to ]
Typically this is something you wouldn't want. Scaling above the source
size will make it blurry because you can't add data that isn't there.
However, even if you did want that, usually it makes more sense to do it
client side not server side, since that will take less bandwidth

Anyways, there is no config per-se. What you could do is write a custom
MediaHandler class that overrides the isVectorized() method to return true
(And register it with $wgMediaHandlers).

--
Brian


On Sat, Jan 21, 2023 at 12:12 PM Patrick Schleizer via MediaWiki-l <
mediawiki-l@lists.wikimedia.org> wrote:

> The usual error.
>
> > Error generating thumbnail
> > Error creating thumbnail: Image was not scaled, is the requested width
> bigger than the source?
>
> It's true.
>
> But is there some setting or extension to permit doing that?
>
> Cheers,
> Patrick
> _______________________________________________
> MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
> To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
>
> https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
>