Thanks for appreciation; I've to underline that it's only a development of a brilliant  idea of George Orwell III (:en:s:Template:Freedimg).

I think that the tool should be used to show a "preview" of final image, since it's a little bit band-expensive (since a unusefully large image is upload to show a piece of it), nevertheless it's so user-rewarding that I think that this is a minor fault.

About ePub bug: I presume that's mainly a css issue into ePub, and that id could be solved finding the right css to export; but I could not test this hypothesis as it deserve.

I hope to extend the tool to make it run everywhere - simply adding what needed to tell him explicitely the basename of File/Index/Page to upload.

Alex




2013/11/27 David Cuenca <dacuetu@gmail.com>
Aubrey, Alex,

Thank you very much for creating this tool and for sharing it. It is really amazing.
On ca-ws we only found one bug: when exporting the document into ePub or pdf (both with the EpubExporter and the Book Tool), the coordinates are not exported rightly and the cropping has an offset. It might be an incompatibility issue with the ePub exporter or something that we have not configured right. Example:
https://ca.wikisource.org/wiki/Test
http://wsexport.wmflabs.org/tool/book.php?lang=ca&format=epub&page=Test

Aleator said that it could be useful for Wikipedia, and I cannot agree more. Sometimes we spend a lot of time cropping and uploading, when it can be done much faster with this.

Micru





On Mon, Nov 18, 2013 at 11:57 AM, Andrea Zanni <zanni.andrea84@gmail.com> wrote:
Dear all, 
user Alex Brollo has developed a very interesting tool which I think many of you will find very useful.
(afaiu he developed this from a previous tool, but he can explain it better)

To test it, go on your oldwikisource account, 
and in User:YOU/vector.js copy this:

importScript("User:Alex_brollo/cornersDependencies.js");
importScript("User:Alex brollo/corners.js");
importStylesheet("User:Alex brollo/common.css");
The tool will appear under Tools, and it's called "Ritaglio immagini" (crop images).
It opens a window which allows you to select and crop an image directy on the page. 
It is extremely useful to use illustration directly on the page.
It is usable both in View and Edit mode. 

In the Italian Wikisource we have made it a Gadget and button, so it's active for everyone. 

Aubrey

_______________________________________________
Wikisource-l mailing list
Wikisource-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikisource-l




--
Etiamsi omnes, ego non