Error of Textcleaner @Synology
Posted: 2016-06-29T10:57:12-07:00
Hello,
I am trying to get the Textcleander running but I always get the following error:
I already adapted due to the error the final convert command in your script by replacing $tmpA1 with $infile to check if ImageMagick generally works. With this adaption I do not get any errors...
I also uncommented some echos in the script for a better debugging:
Could anybody give me an advice what’s is going wrong?
Thanks a lot in advance!!
I am trying to get the Textcleander running but I always get the following error:
Code: Select all
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Configure convert[31030]: utility.c/ExpandFilenames/935/Configure
Command line: convert {-debug} {all} {-respect-parenthesis} {(} {./textcleaner_1_30964.mpc} {-colorspace} {gray} {-type} {grayscale} {-contrast-stretch} {0} {)} {(} {-clone} {0} {-colorspace} {gray} {-negate} {-lat} {25x25+20%} {-contrast-stretch} {0} {-blur} {1x65535} {-level} {30x100%} {)} {-compose} {copy_opacity} {-composite} {-fill} {white} {-opaque} {none} {-alpha} {off} {-background} {white} {-deskew} {40%} {-sharpen} {0x1} {-trim} {+repage} {-compose} {over} {-bordercolor} {white} {-border} {20} {out.jpg}
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Policy convert[31030]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Read; pattern="./textcleaner_1_30964.mpc" ...
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Blob convert[31030]: blob.c/OpenBlob/2590/Blob
read 3 magic header bytes
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Cache convert[31030]: cache.c/DestroyPixelCache/991/Cache
destroy
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Configure convert[31030]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/opt/etc/ImageMagick-6/magic.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Configure convert[31030]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/share/ImageMagick-6/magic.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Configure convert[31030]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/lib/ImageMagick-6.9.1//config-Q8/magic.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Configure convert[31030]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/bin/ImageMagick-6/magic.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Configure convert[31030]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6/magic.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Configure convert[31030]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/var/services/homes/admin/.config/ImageMagick/magic.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Configure convert[31030]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/var/services/homes/admin/.magick/magic.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Configure convert[31030]: magic.c/LoadMagicCache/773/Configure
Loading magic configure file "/opt/etc/ImageMagick-6/magic.xml" ...
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Policy convert[31030]: policy.c/IsRightsAuthorized/574/Policy
Domain: Coder; rights=Read; pattern="MPC" ...
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Policy convert[31030]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Read; pattern="./textcleaner_1_30964.mpc" ...
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Blob convert[31030]: blob.c/OpenBlob/2590/Blob
read 3 magic header bytes
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Resource convert[31030]: resource.c/AcquireMagickResource/312/Resource
Width: 2.46KB/2.46KB/429.5MB
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Resource convert[31030]: resource.c/AcquireMagickResource/312/Resource
Height: 3.48KB/3.48KB/429.5MB
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Resource convert[31030]: resource.c/AcquireMagickResource/312/Resource
Area: 34.23MB/34.23MB/1.0473GB
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Resource convert[31030]: resource.c/AcquireMagickResource/312/Resource
Memory: 34.23MB/32.64MiB/499.4MiB
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Cache convert[31030]: cache.c/OpenPixelCache/3628/Cache
open ./textcleaner_1_30964.mpc[0] (Heap Memory, 2456x3484 32.64MiB)
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Cache convert[31030]: cache.c/PersistPixelCache/3868/Cache
attach persistent cache
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Resource convert[31030]: resource.c/AcquireMagickResource/312/Resource
Width: 2.46KB/2.46KB/429.5MB
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Resource convert[31030]: resource.c/AcquireMagickResource/312/Resource
Height: 3.48KB/3.48KB/429.5MB
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Resource convert[31030]: resource.c/AcquireMagickResource/312/Resource
Area: 34.23MB/34.23MB/1.0473GB
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Resource convert[31030]: resource.c/AcquireMagickResource/312/Resource
Memory: 34.23MB/65.28MiB/499.4MiB
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Resource convert[31030]: resource.c/RelinquishMagickResource/1002/Resource
Memory: 34.23MB/32.64MiB/499.4MiB
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Resource convert[31030]: resource.c/AcquireMagickResource/312/Resource
Disk: 34.23MB/32.64MiB/16EiB
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Resource convert[31030]: resource.c/RelinquishMagickResource/1002/Resource
Disk: 34.23MB/0B/16EiB
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/opt/etc/ImageMagick-6/locale.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/share/ImageMagick-6/locale.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/lib/ImageMagick-6.9.1//config-Q8/locale.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/bin/ImageMagick-6/locale.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/share/doc/ImageMagick-6/locale.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/var/services/homes/admin/.config/ImageMagick/locale.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/var/services/homes/admin/.magick/locale.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Configure convert[31030]: locale.c/LoadLocaleCache/1176/Configure
Loading locale configure file "/opt/etc/ImageMagick-6/locale.xml" ...
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/opt/etc/ImageMagick-6/english.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/share/ImageMagick-6/english.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/lib/ImageMagick-6.9.1//config-Q8/english.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/bin/ImageMagick-6/english.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/share/doc/ImageMagick-6/english.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/var/services/homes/admin/.config/ImageMagick/english.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Locale convert[31030]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/var/services/homes/admin/.magick/english.xml"
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Configure convert[31030]: locale.c/LoadLocaleCache/1176/Configure
Loading locale configure file "/opt/etc/ImageMagick-6/english.xml" ...
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Exception convert[31030]: cache.c/OpenPixelCache/3711/Exception
unable to open pixel cache `./textcleaner_1_30964.mpc': No such file or directory
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Exception convert[31030]: mpc.c/ReadMPCImage/944/Exception
unable to persist pixel cache `./textcleaner_1_30964.mpc'
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Cache convert[31030]: cache.c/DestroyPixelCache/991/Cache
destroy ./textcleaner_1_30964.mpc[0]
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Resource convert[31030]: resource.c/RelinquishMagickResource/1002/Resource
Disk: 34.23MB/16EiB/16EiB
2016-06-29T19:51:08+02:00 0:00.000 0.000u 6.9.1 Exception convert[31030]: convert.c/ConvertImageCommand/970/Exception
image sequence is required `-clone'
convert: unable to open pixel cache `./textcleaner_1_30964.mpc': No such file or directory @ error/cache.c/OpenPixelCache/3711.
convert: unable to persist pixel cache `./textcleaner_1_30964.mpc' @ error/mpc.c/ReadMPCImage/944.
convert: image sequence is required `-clone' @ error/convert.c/ConvertImageCommand/970.
I also uncommented some echos in the script for a better debugging:
Code: Select all
./textcleaner2 -g -e stretch -f 25 -o 20 -t 30 -u -s 1 -T -p 20 scanDoc_1.0.tiff out.jpg
ww=2456; hh=3484; aspect=1
cropoff=; numcrops=0; cropping=
makegray= -colorspace gray -type grayscale
enhancing= -contrast-stretch 0
blurring=-blur 1x65535 -level 30x100%
unrotating=-background white -deskew 40%
sharpening=-sharpen 0x1
modulation=
trimming=-trim +repage
padding=-compose over -bordercolor white -border 20
Thanks a lot in advance!!