Commons:Bots/Requests/Rybecbot
clarify
← Older revision
Revision as of 08:46, 25 March 2013
Line 43:
Line 43:
* {{question}}: Does your bot automatically detect the watermarks or are you manually instructing what to crop? -- ''[[User:Rillke|Rillke]]''[[User talk:Rillke|(q?)]] 10:38, 23 March 2013 (UTC)
* {{question}}: Does your bot automatically detect the watermarks or are you manually instructing what to crop? -- ''[[User:Rillke|Rillke]]''[[User talk:Rillke|(q?)]] 10:38, 23 March 2013 (UTC)
−
*:I was just using the ''identify'' command from Imagemagick to get the pixel size of the images, subtracting 138 from the height, then scripting ''jpegtran'' to crop to that size. I agree that the metadata is important. The problem was that I didn't use the "copy all" option to jpegtran. I've manually uploaded to [[:File:1210_Turnhout_029.JPG]] one example of a file cropped with the "copy all" option. Its [http://regex.info/exif.cgi?imgurl=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F9%2F98%2F1210_Turnhout_029.JPG EXIF data] is preserved. I also learned how to do an edit summary with the script: [//commons.wikimedia.org/w/index.php?title=File:Test-1364199597.png&diff=prev&oldid=93238398]. [[Special:Contributions/24.24.214.15|24.24.214.15]] 08:40, 25 March 2013 (UTC)
+
*:I was just using the ''identify'' command from Imagemagick to get the pixel size of downloaded images, subtracting 138 from the height, scripting ''jpegtran'' to crop to that size, and the only function of the bot is the re-uploading. I agree that the metadata is important. The problem was that I didn't use the "copy all" option to jpegtran. I've manually uploaded to [[:File:1210_Turnhout_029.JPG]] one example of a file cropped with the "copy all" option. Its [http://regex.info/exif.cgi?imgurl=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F9%2F98%2F1210_Turnhout_029.JPG EXIF data] is preserved. I also learned how to do an edit summary with the script: [//commons.wikimedia.org/w/index.php?title=File:Test-1364199597.png&diff=prev&oldid=93238398]. [[Special:Contributions/24.24.214.15|24.24.214.15]] 08:40, 25 March 2013 (UTC)