Movatterモバイル変換


[0]ホーム

URL:


Jump to content
Wikimedia Commons
Search

Commons:CropTool

From Wikimedia Commons, the free media repository
Translate this page; This page containschanges which are not marked for translation.

Shortcut:COM:CROPT

Other languages:

CropTool is a MediaWiki tool for cropping images at Wikimedia Commons and other Wikimedia sites. It supports JPEG, PNG, TIFF, SVG, WebP, and (animated) GIF files, and can also extract single pages from DJVU and PDF files as JPEG for cropping. CropTool is inspired byUser:Cropbot, but adds some new features, such asOAuth for authorization and automatic border detection. It runsat Toolforge, and the source code is availableat GitHub. Recent usage of the tool is availablefrom recent changes.

CropTool

2020 Coolest Tool
Award Winner

in the category
Tiny

Setup

[edit]

Activate CropTool!

After activation, it will appear in the “Tools” menu of the left column.

Alternatively: go totoolforge.

Tutorial

[edit]
1. Here is an image that should have its border removed. Start by clicking “CropTool” in the “Tools” menu.
2. To use CropTool, you need to authorize it to use your Wikimedia Commons account usingOAuth.
3. This will take you to a secure MediaWiki OAuth server. Note that your password is never transmitted to CropTool.
4. Make a selection with the cursor and press “Preview”. In this case, we need to make an exact (Precise mode) crop, since we want to keep as much of the image as possible, while removing the border. Note that in many cases an inexact (Lossless mode) is completely sufficient and recommended.
5. Looks good, so we can go ahead and press “Upload”.

Install on other projects

[edit]

If the CropTool is not presentas a gadget in your local Wikimedia project (like Wikipedia), you can install it (manually in your user JavaScript settings) with following code:

mw.loader.load('//commons.wikimedia.org/w/load.php?modules=ext.gadget.CropTool');

Install globally

[edit]

If you want to have CropTool active on all Wikimedia projects you may use the following code atm:Special:MyPage/global.js. Don't forget to disable CropTool on all projects before you add it globally.

if(mw.config.get('wgNamespaceNumber')===6&&mw.config.get('wgIsArticle'))mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-CropTool.js&action=raw&ctype=text/javascript');

Problems

[edit]
  • Sometimes, immediately after youoverwrite a file, you do not see apparent changes to it, or it appears "distorted". This is usually caused bycaching. To solve the problem, you can simplypurge the page. Append?action=purge to theURL and then press Enter. If that doesn't solve the problem, follow the instructions atw:Wikipedia:Bypass your cache/Simple instructions.
  • Between September 2020 and 19 February 2024, all cropping was done using lossy mode ("precise" mode), even if lossless mode was selected and the tool said that a lossless crop was performed.
  • Crops from large TIFF files are sometimes compressed leading tobroken files

If you encounter other problems, please checkCommons talk:CropTool andhttps://github.com/danmichaelo/croptool/issues and write a bug report if necessary.

See also

[edit]
Retrieved from "https://commons.wikimedia.org/w/index.php?title=Commons:CropTool&oldid=1096741068"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp