croptool
croptool copied to clipboard
Tool for cropping images at Wikimedia Commons and other Wikimedia wikis
Fixes: https://commons.wikimedia.org/wiki/Commons_talk:CropTool#Not_workin_on_enwiki
```console anticomposite@tools-bastion-13:/data/project/croptool$ tail cleanup.out 2024-02-03 13:17 Deleted 44 files 2024-02-03 14:17 Deleted 172 files 2024-02-03 15:17 Deleted 76 files 2024-02-03 16:17 Deleted 61 files 2024-02-03 17:17 Deleted 138 files 2024-02-03...
For example: * https://croptool.toolforge.org/?site=commons.wikimedia.org&title=Planisph%C3%A8re,+Colonies+fran%C3%A7aises+-+par+P.+Vidal-Lablache...+-+btv1b52514112q+(2+of+2).jpg * https://croptool.toolforge.org/?site=commons.wikimedia.org&title=Chidiebere+Ibe+Photograph.jpg Both of these images are around 50 mb, and both fail in the same way These evetually make a call to info api endpoint...
SVG files can potentially have relative widths and heights where their size is relative to the browser size. This causes cropping to fail as the backend and frontend disagree on...
When I try to crop a jpg file, it says Upload failed! undefined
Previously this was suggesting a .jpg extension for multipage files and keeping the same extension for everything else. However, single page .pdf and .djvu should still have the .jpg extension....
Previously this was throwing an error on client side when ratio was not specified in url, because then ratio would be undefined and string related methods could not be called...
When CropTool is used to crop images from multipage files (djvu or pdf), it uploads a slightly edited copy of Book template of source file. I see that recent uploads...
Croptool works for files uploaded in Commons, but it would also be very helpful if it works also for locally uploaded files, like locally uploaded books in different Wikisource projects,...
DragonflySixtyseven uploaded https://commons.wikimedia.org/wiki/File:Amazing_Stories_no._31_(October_1928).jpg and attempted to crop it using Firefox but got `[Error] undefined` when previewing. They switched to Chrome and were able to preview and overwrite the image, but...