Yesterday I saw Flickr's function "rotate image". This is really great, especially for people with lower bandwidth. Could we do something like that, too?
Idea 1: A tool that downloads the image, rotates it and uploads it either under the username of the one who called it or by its own username.
Idea 2: A bot which does that. You can call the bot by {{rotate|right}} or {{rotate|left}}
What do you think? Would that be possible?
Regards,
Flo
On 9/8/07, Florian Straub flominator@gmx.net wrote:
Yesterday I saw Flickr's function "rotate image". This is really great, especially for people with lower bandwidth. Could we do something like that, too?
Idea 1: A tool that downloads the image, rotates it and uploads it either under the username of the one who called it or by its own username.
Idea 2: A bot which does that. You can call the bot by {{rotate|right}} or {{rotate|left}}
What do you think? Would that be possible?
Regards,
Flo
We get a lot of images needing 90° rotation from people who don't know know to rotate them, and there are a lot of people who rotate them using non-lossless means; a bot or automatic script or something that does the rotation losslessly and is easy to use would be great. It would both decrease the work for the volunteers rotating the images AND ensure that lossless rotation is used so quality stays high.
On 9/9/07, Florian Straub flominator@gmx.net wrote:
Idea 1: A tool that downloads the image, rotates it and uploads it either under the username of the one who called it or by its own username.
Idea 2: A bot which does that. You can call the bot by {{rotate|right}} or {{rotate|left}}
Idea 3: Do it within MediaWiki. We use [[ImageMagick]] for generating thumbnails of images, but it can do many other things too, including rotating images. It would certainly be possible to set up an interface to do this. It would be one of the more resource intensive types of requests though, so the devs might have something to say about such a scheme.
On 9/8/07, Stephen Bain stephen.bain@gmail.com wrote:
On 9/9/07, Florian Straub flominator@gmx.net wrote:
Idea 1: A tool that downloads the image, rotates it and uploads it either under the username of the one who called it or by its own username.
Doable, but requires java, flash or activex on the user's side. JavaScript uploading is impossible for binary data :(
Idea 2: A bot which does that. You can call the bot by {{rotate|right}} or {{rotate|left}}
Doable.
Idea 3: Do it within MediaWiki. We use [[ImageMagick]] for generating thumbnails of images, but it can do many other things too, including rotating images. It would certainly be possible to set up an interface to do this. It would be one of the more resource intensive types of requests though, so the devs might have something to say about such a scheme.
My preference. Is there no such extension?
-- Stephen Bain stephen.bain@gmail.com
Commons-l mailing list Commons-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/commons-l
Cheers, Bryan
2007/9/8, Stephen Bain stephen.bain@gmail.com:
On 9/9/07, Florian Straub flominator@gmx.net wrote:
Idea 1: A tool that downloads the image, rotates it and uploads it either under the username of the one who called it or by its own username.
Idea 2: A bot which does that. You can call the bot by {{rotate|right}} or {{rotate|left}}
Idea 3: Do it within MediaWiki. We use [[ImageMagick]] for generating thumbnails of images, but it can do many other things too, including rotating images. It would certainly be possible to set up an interface to do this. It would be one of the more resource intensive types of requests though, so the devs might have something to say about such a scheme.
or maybe something like `jhead -autorot *` - it fixes rotation according to EXIF data in JPEG files (very nice tool for working with photos from cameras that are not enough clever to rotate them, but wise enough to mark they aren't ;)
AJF/WarX
Florian Straub wrote:
Yesterday I saw Flickr's function "rotate image". This is really great, especially for people with lower bandwidth. Could we do something like that, too?
Idea 1: A tool that downloads the image, rotates it and uploads it either under the username of the one who called it or by its own username.
I thought in doing that, but didn't make the code. /me goes to do it.
Idea 2: A bot which does that. You can call the bot by {{rotate|right}} or {{rotate|left}}
We already have {{rotate}} I thought it already had a paramter saying how it should be rotated but seems it hasn't :-(
Imagemagick doesn't do lossless rotation.
Platonides Platonides@gmail.com wrote on Sat, 08 Sep 2007 22:23:45 +0200:
Imagemagick doesn't do lossless rotation.
what does?
What does under Windows?
Regards,
Flo
On 10/09/07, Florian Straub Flominator@gmx.net wrote:
Platonides Platonides@gmail.com wrote on Sat, 08 Sep 2007 22:23:45 +0200:
Imagemagick doesn't do lossless rotation.
what does?
jpegtran, which is part of the standard JPEG software.
What does under Windows?
jpegtran for Win32, of course!
http://sylvana.net/jpegcrop/jpegtran/ http://sourceforge.net/projects/gnuwin32 (JPEG package)
- d.
David Gerard wrote:
On 10/09/07, Florian Straub Flominator@gmx.net wrote:
Platonides Platonides@gmail.com wrote on Sat, 08 Sep 2007 22:23:45 +0200:
Imagemagick doesn't do lossless rotation.
what does?
jpegtran, which is part of the standard JPEG software.
What does under Windows?
jpegtran for Win32, of course!
http://sylvana.net/jpegcrop/jpegtran/ http://sourceforge.net/projects/gnuwin32 (JPEG package)
there is also a program call jpegcrop from the jpegtran guys that among other things can do lossless rotation and do it visually.
note however that not all jpegs can be losslessly rotated. The top and left sides of a jpeg must be on a block boundry and for lossless rotation the block boundries must not change and .
Florian Straub wrote:
Platonides wrote on Sat, 08 Sep 2007 22:23:45 +0200:
Imagemagick doesn't do lossless rotation.
what does?
What does under Windows?
Regards,
Flo
It "applies Paeth image rotation (using shear operations) to the image." I haven't seen any statement saying that it does lossless rotation. Thus i assume its rotation is not lossless, so some data may be lost in the process (not that our users would complain).
On 9/9/07, Platonides Platonides@gmail.com wrote:
Imagemagick doesn't do lossless rotation.
I'm sure there are better tools out there, but ImageMagick is already available on the servers and is already used in MediaWiki, which means that further use of it is likely to be ok, as opposed to introducing some new software.
Cropping images is another function that ImageMagick can do that has been suggested before as a possible inclusion to MediaWiki. A Javascript interface could handle that quite nicely.