Commons:Bots/Requests/Rybecbot
Discussion: edit summary resolved
← Older revision
Revision as of 08:40, 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. I'm going to look into the ''exiftran'' program. "It can do lossless rotations like jpegtran, but unlike jpegtran it cares about the EXIF data," says the man page. I think the problem is that I didn't use the "copy all" option to jpegtran. --[[User:Rybec|Rybec]] ([[User talk:Rybec|talk]]) 04:39, 25 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:
−
*: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. [[User:Rybec|Rybec]] ([[User talk:Rybec|talk]]) 05:36, 25 March 2013 (UTC)
+
[//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)