If any of you if interested about, you can find here: https://it.wikisource.org/wiki/Utente:Alex_brollo/estrattoreImmagini.py the draft of two version of a py tool, that reads wikicode of source pages, finds code of crop template, and uses their parameters to crop really images coming from djvu file or from archive.org _jp2.zip (if any).
Cropped images are collected into a folder, ready to be uploaded into Commons by commonis orsimilar scripts. Alex 2013-11-27 18:04 GMT+01:00 Jayanta Nath <[email protected]>: > Great tool! Thank you! > > > On Wed, Nov 27, 2013 at 9:58 PM, Alex Brollo <[email protected]>wrote: > >> 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 <[email protected]> >> >>> 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 <[email protected] >>> > 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 >>>> [email protected] >>>> https://lists.wikimedia.org/mailman/listinfo/wikisource-l >>>> >>>> >>> >>> >>> -- >>> Etiamsi omnes, ego non >>> >> >> >> _______________________________________________ >> Wikisource-l mailing list >> [email protected] >> https://lists.wikimedia.org/mailman/listinfo/wikisource-l >> >> > > _______________________________________________ > Wikisource-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikisource-l > >
_______________________________________________ Wikisource-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikisource-l
