Commit 99635db0 authored by Arthur Crepin-Leblond's avatar Arthur Crepin-Leblond Committed by Guillaume Lazzara
Browse files

Small changes in xml_transform.

        * scribo/sandbox/arthur/xml_transform/README

        * scribo/sandbox/arthur/xml_transform/image_crop.cc: Delete verbose mode.
        * scribo/sandbox/arthur/xml_transform/main.cc: Small fix.
parent e3767ee4
2010-07-21 Arthur Crepin-Leblond <crepin@ptaouchnok.lrde.epita.fr>
Small changes in xml_transform.
* scribo/sandbox/arthur/xml_transform/README
* scribo/sandbox/arthur/xml_transform/image_crop.cc: Delete verbose mode.
* scribo/sandbox/arthur/xml_transform/main.cc: Small fix.
2010-07-21 Arthur Crepin-Leblond <crepin@ptaouchnok.lrde.epita.fr>
Files headers change + base64 data hide in xml tree.
......
......@@ -21,4 +21,9 @@ Base 64 operations:
BUILD:
Chnage the environment variable QMAKE_CXXFLAGS to indicate the correct paths to milena and olena in the .pro file then, just type qmake and make.
\ No newline at end of file
Chnage the environment variable QMAKE_CXXFLAGS in xml_transfrom.pro then
mkdir _build
cd _build
qmake ../xml_transfrom.pro
make
\ No newline at end of file
......@@ -61,10 +61,10 @@ void ImageCrop::save_image(QString file)
else
filename = file;
std::cout << "Saving " << image_.toStdString() << " to "
<< output_dir_.toStdString() << "img/"
<< filename.toStdString() << ".png"
<< std::endl;
// std::cout << "Saving " << image_.toStdString() << " to "
// << output_dir_.toStdString() << "img/"
// << filename.toStdString() << ".png"
// << std::endl;
io::magick::save(ima, output_dir_.toStdString() + "img/" + filename.toStdString() + ".png");
}
......
......@@ -9,15 +9,15 @@ int main(int argc, char **argv)
man = "xml_transform\n";
man += "OPTIONS:\n\n";
man += "HTML output:\n";
man += "\t--html <xml> <ppm> <out_dir> : HTML output with non-text regions croped into many png files.\n";
man += "\t--html <xml> <ppm> <out_dir> : HTML output with non-text regions cropped into many png files.\n";
man += "\t--html-base64 <xml> <out_dir> : HTML output from a container XML file.\n\n";
man += "PDF output:\n";
man += "\t--pdf <xml> <ppm> <out_dir> : PDF output with non-text regions croped into many png files.\n";
man += "\t--pdf <xml> <ppm> <out_dir> : PDF output with non-text regions cropped into many png files.\n";
man += "\t--pdf-no-crop <xml> <ppm> <out_dir>: PDF output with the entire picture displayed over the text.\n";
man += "\t--pdf-base64 <xml> <out_dir> : PDF output from a container XML file.\n";
man += "\t--pdf-base64-no-crop <xml> <ppm> <out_dir> : PDF with the entire picture displayed over the text, the picture is loaded from a container XML file.\n\n";
man += "Base 64 operations:\n";
man += "\t--to-base64 <xml> <ppm> <out_xml> : Produces a container XML file by converting croped pictures into base 64 format.\n";
man += "\t--to-base64 <xml> <ppm> <out_xml> : Produces a container XML file by converting cropped pictures into base 64 format.\n";
man += "\t--to-base64-no-crop <xml> <ppm> <out_xml> : Same as to-base64 but only the picture is converted in base 64.\n";
man += "\t--from-base64 <xml> <out_dir> : Decodes a XML container file to produce original image files.\n";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment