Changes between Version 12 and Version 13 of Cutting out images


Ignore:
Timestamp:
Dec 16, 2010, 12:06:03 PM (13 years ago)
Author:
Klaus Thoden
Comment:

Update

Legend:

Unmodified
Added
Removed
Modified
  • Cutting out images

    v12 v13  
    33
    44 1. The figures should be cut out of the TIFF-images, rather than the compressed JPG-images in {{{online_permanent/library}}} on foxridge. The Digigroup should know where the relevant images are.
    5  1. Do not cut out drop caps or embellishments, e. g. decorative images on the title page
     5 1. Do not cut out drop caps or embellishments, except for decorative images on the title page
    66 1. If there is already an {{{xml}}}-version of the text, it is handy to extract a list of all figures that are to be cut out. You can do this for example by using XQuery in the display system:
    77{{{
     
    1313}}}
    1414 Depending on how much context you like (with caption or not).
    15  1. Now, in the viewing environment, you can browse through the book, visiting the respective pages and mark the images using digilib's "zoom area" tool. Be careful not to cut out surrounding text, including the catchword at the bottom of the page. However, captions are to be cut out, as well. Some small images are only there for decorative purposes. The policy is not to cut out these ones. Lateron, these have to be deleted from the xml file.
    16  1. Save the URLs of the pages with the zoomed area into a text file. Also, note in the file which images have to be removed from the XML. The list should be stored somewhere for future reference (e. g. in case the figures are not produced by cutting the files, but by extracting the figures on the fly). The first list was generated for [http://it-dev.mpiwg-berlin.mpg.de:81/tracs/mpdl-project-content/attachment/wiki/WO3_Apian_1550/Apian_1550_PUBSU9QD_figure-coords.txt Apian 1550].
    17  1. On the basis of this text file, the Python script cut_images.py (attached to this page) takes care of cutting out the images from the original TIFF files and saves them in the desired format {{{page-imagenumber}}} (e. g., if pageimage {{{0056.tif}}} has three figures, these figures will be saved as {{{0056-01.tif}}}, {{{0056-02.tif}}} and {{{0056-03.tif}}}), by calling Imagemagick's commands {{{identify}}} and {{{convert}}}. They are stored in a folder called {{{figures}}}
    18  1. This folder is then uploaded to the foxridge server alongside the {{{pageimg}}}-folder of the respective book: folder {{{online_permanent/library/XXXXXXXX}}} will then contain both a {{{pageimg}}} and a {{{figures}}} folder.
    19  1. It should be made sure that the excluded images are removed from the XML file.
     15 A list of all figures in ECHO has been extracted ([https://it-dev.mpiwg-berlin.mpg.de/tracs/mpdl-project-software/attachment/wiki/WikiStart/echo-figures.html download]) and converted to html which contains links to each page containing figures.
     16 1. Now, in the viewing environment, mark the images using digilib's "zoom area" tool. Be careful not to cut out surrounding text, including the catchword at the bottom of the page. However, captions are to be cut out, as well. It is sometimes advisable to first cut out a bigger section around the figure. Some small images are only there for decorative purposes. The policy is not to cut out these ones. Lateron, these have to be deleted from the xml file.
     17 1. Save the URLs of the pages with the zoomed area into a text file (keyboard shortcuts come in handy here: {{{cmd-l-c-w}}} copies the link in the address bar and closes the tab, {{{cmd-TAB}}} switches to a text editor, {{{cmd-v}}} inserts the link. To note in the file which images have to be removed from the XML, copy the URL to the text file, but insert a {{{#}}} before that. You can also write other comments into this file, but be sure to begin the line with a {{{#}}}. The resulting list is to be saved in a new directory on the same level as the {{{raw}}} and the {{{xml}}} directory (see [source:/trunk/texts/WO_1/Stevin_1605] as an example). When trained, the average speed for cutting out figures is 2.5 figures per minute (completed Stevin_1605 in 2 hours)
     18 1. On the basis of this text file, the Python script [source:/trunk/schema/scripts/cut_figures/cut_figures.py cut_figures.py] takes care of cutting out the images from the original TIFF files and saves them in the desired format {{{page-imagenumber}}} (e. g., if pageimage {{{0056.tif}}} has three figures, these figures will be saved as {{{0056-01.tif}}}, {{{0056-02.tif}}} and {{{0056-03.tif}}}), by calling Imagemagick's commands {{{identify}}} and {{{convert}}}. They are stored in a folder called {{{figures}}}
     19 1. It should be made sure that the excluded images are removed both from the raw text and the XML file.
    2020
    2121== Discussion ==