انبار:ابزاربرش

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
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 is a MediaWiki tool for cropping images at Wikimedia Commons and other Wikimedia sites. It supports JPEG, PNG, TIFF and (animated) GIF files, and can also extract single pages from DJVU and PDF files as JPEG for cropping. CropTool is inspired by User:Cropbot, but adds some new features, such as OAuth for authorization and automatic border detection. It runs at Toolforge, and the source code is available at GitHub. Recent usage of the tool is available from recent changes.

CropTool

2020 Coolest Tool
Award Winner

in the category
Tiny


نصب

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

Alternatively: go to toolforge.

آموزش

اینجا تصویری را داریم که باید حاشیه‌هایش را حذف کنیم. با کلیک کردن بر روی «زیر صفحه» در فهرست «ابزارها» شروع کنید.
برای دیدن زیرصفحه، شما نیاز دارید تا با استفاده از OAuth به حساب ویکی‌مدیا کامنزِتان اجازه استفاده آن را بدهید.
این باعث می‌شود به سرور امن مدیاویکی OAuth بروید. توجه کنید که رمز عبورتان هرگز به زیر صفحه منتقل نمی‌شود.
با مکان‌نما یک انتخاب بکنید و دکمه «پیش نمایش» را فشار دهید. در این مورد، شما نیاز دارید تا یک گلچین دقیق را تهیه کنید از آنجا که ما می‌خواهیم که تا جایی که ممکن است تصویر را نگه داریم، مگر اینکه حاشیه های آن را حذف کنیم.
5. خوب به نظر می‌رسد، بنابراین ما می‌توانیم ادامه دهیم و دکمه «بارگزاری» را فشار دهیم.

Install on other projects

If the CropTool is not present as 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

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' );

Problems

  • 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.