Вікісховішча:CropTool

This page is a translated version of a page Commons:CropTool and the translation is 47% complete. Changes to the translation template, respectively the source language can be submitted through Commons:CropTool and have to be approved by a translation administrator.

Shortcut: COM:CROPT

CropTool — інструмэнт MediaWiki для абрэзкі выяваў у Вікісховішчы ды іншых праектах Вікімэдыі. Ён працуе з файламі JPEG, PNG, TIFF ды (анімаванымі) GIF, можа таксама выразаць асобныя старонкі з файлаў DJVU ды PDF у фармат JPEG для абрэзкі. CropTool натхнёны ўдзельнікам Cropbot, але мае дадатковыя можнасьці, напрыклад OAuth для аўтарызацыі і аўтаматычнага вызначэньня межаў. Ён дзее на Toolforge, а крынічнік даступны на GitHub. Паглядзець нядаўнія выкарыстаньні інструмэнта можна ў апошніх зьмяненьнях.

CropTool

2020 Coolest Tool
Award Winner

in the category
Tiny


Канфігурацыя

Запусьціць CropTool!

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

Alternatively: go to toolforge.

Дапаможнік

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 using OAuth.  
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”.  

Усталяваньне ў іншых праектах

Калі ў вашым лякальным праекце Вікімэдыі (напрыклад, Вікіпэдыі) CropTool адсутнічае ў сьпісе інструмэнтаў, можаце ўсталяваць яго (самаручна ў вашых наладах JavaScript) гэткім кодам:

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

Install globally

If you want to have CropTool active on all Wikimedia projects you may use the following code at m: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' );

Праблемы

  • Sometimes, immediately after you overwrite a file, you do not see apparent changes to it, or it appears "distorted". This is usually caused by caching. To solve the problem, you can simply purge the page. Append ?action=purge to the URL and then press  Enter. If that doesn't solve the problem, follow the instructions at w: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 to broken files

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

Глядзіце таксама