User:Cropbot

From Wikimedia Commons, the free media repository

Jump to: navigation, search
Babel
± This user is in fact a bot.
Search user languages

Contents

[edit] Cropbot

Cropbot is a bot provided by Luxo and is able to crop jpg's.

[edit] How can I crop images with Cropbot?

With Cropbot you are able to crop images without downloading them on your computer. You must create a TUSC - Account, then you can log in the cropbot-interface on the toolserver. Then you can select your section and Cropbot upload it under the same or optionally under a different name. If you select a different name, a note of the cropped version is placed at the original file by Bilderbot at 02:00 UTC. If you upload under the same name, you can ask the bot to search for {{Remove border}}, if he find it, he will remove it.

if you put the following javascript in your monobook you have a link in your tools to crop this file.

function addcroplink()
{
   if(wgNamespaceNumber == 6)
   {
      if(wgTitle.match(/(.*)\.(jpg|jpeg)/gi))
      {
          var croplink = "http://toolserver.org/~luxo/cropbot/cropbot.php?img="+wgTitle;
          addPortletLink("p-tb", croplink, "Crop", "p-crop", "Crop this image", "o", false);
      }
   }
}
 
addOnloadHook(addcroplink);

[edit] How does Cropbot crop?

He crops JPEGs with the lossless tool jpegtran or with the tool ImageMagick.

[edit] What is the difference between "Crop exactly" and "Crop lossless"?

crop lossless is currently not working because on the new toolserver webserver Wolfsbane is the old version of jpegtran installed which doesn't support lossless cropping. There is a ticket on the Toolserver Issue Tracker, to give them more priority vote for it!

Because when cropping lossless, images of sizes which are not a multiply of the JPEG block (16 × 16 pixels for color images, 8 × 8 pixels for grayscale images) have to be cropped to the block boundary, which is mostly not exact there where you have selected. Because of that you have the feature "Crop exactly", which is not lossless, but it cuts exactly that what you have selected.

→Read more about that here

[edit] At which time does Cropbot work?

24/7 - every time a user asks him to crop a file.

[edit] What if Cropbot causes problems?

Look in the file history which user operated the bot; then ask this user. It is futile to complain about wrong crops on the talk page of this bot; user can't see that. This bot shows in each edit summary which user operates the bot; ask this user. If you can't stop it, ask a admin to block the bot and notify User:Luxo on his talk page.

[edit] Where can I get the source of the tool?

Cropbot is free software, source and license of the tool you will find here.