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

Trevor Parscal <tpars...@wikimedia.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tpars...@wikimedia.org

--- Comment #2 from James Forrester <jforres...@wikimedia.org> ---
(In reply to C. Scott Ananian from comment #1)
> I'm not convinced we should be bloating our Parsoid DOM representation with
> original size information which can easily be obtained from the imageinfo
> API.  In order to do a proper resize, you are probably going to have to
> fetch the original image anyway so that things don't get blurry when you
> scale up.
> 
> But I'm interesting in hearing other thoughts.

We don't fetch the original image unless the new size is the image's original
dimensions – we ask MW for the thumbnail of that size. We certainly don't ask
e.g. for a 10MiB original 5000x4000px image when the user is just resizing from
250x200px to 300x240px. Also, we fetch the new image /after/ the image is
resized.

--- Comment #3 from Trevor Parscal <tpars...@wikimedia.org> ---
I do agree we should be careful, but I think this is worth including. It's
really useful and costs very little.

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

Reply via email to