Commons:CropTool

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.
Outdated translations are marked like this.

Shortcut: COM:CROPT

CropTool là một công cụ để cắt xén hình ảnh tại Wikimedia Commons và các trang web Wikimedia khác. Nó hỗ trợ các tệp JPEG, PNG, TIFF và tệp GIF (hoạt hình) và cũng có thể trích xuất các trang đơn từ các tệp DJVU và PDF dưới dạng JPEG để cắt. CropTool được lấy cảm hứng từ User:Cropbot, nhưng thêm một số tính năng mới, như là OAuth cho phép và phát hiện biên giới tự động. Nó chạy [toolforge:croptool trên Toolforge], và mã nguồn có sẵn tại GitHub. Sử dụng công cụ gần đây có sẵn từ những thay đổi gần đây.

CropTool

2020 Coolest Tool
Award Winner

in the category
Tiny


Thiết lập

Bạn có thể thử công cụ này bằng cách đi đến $link, nhưng nó thuận tiện hơn khi có một liên kết trong menu Công cụ của bạn tại Wikimedia Commons. Để thiết lập nó, nhấn vào đây.

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

Alternatively: go to toolforge.

Hướng dẫn

1. Đây là một hình ảnh nên loại bỏ đường viền của nó

. Bắt đầu bằng cách nhấp vào “CropTool” trên menu “Công cụ”.

2. Để sử dụng CropTool, bạn cần cho phép nó sử dụng tài khoản Wikimedia Commons của bạn bằng cách sử dụng OAuth.
3. Điều này sẽ đưa bạn đến một máy chủ MediaWiki OAuth an toàn. Lưu ý rằng mật khẩu của bạn không bao giờ được truyền tới 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. Có vẻ tốt, vì vậy chúng tôi có thể đi trước và nhấn “Upload”.

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.