I am trying to create an image file which has a text and a transparent background.
I used this command:
convert -background black -fill blue \ -font Arial -pointsize 72 label: \ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam invidunt ut labore . invidunt ut labore . output.png
but it did not create me anything and I got this error / message:
convert.exe: unable to open image '\': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image '\': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'Lorem': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'ipsum': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'dolor': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'sit': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'amet': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'consetetur': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'sadipscing': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'elitr': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'sed': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'diam': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'nonumy': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'eirmod': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'tempor': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'invidunt': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'ut': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'labore': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'et': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'dolore': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'magna': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'aliquyam': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'invidunt': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'ut': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'labore': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image '.': Permission denied #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'invidunt': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'ut': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image 'labore': No such file or directory #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format ' # error/constitute.c/ReadImage/508. convert.exe:
unable to open image '.': Permission denied #
error/blob.c/OpenBlob/2695. convert.exe: no decode delegate for this
image format' # error/constitute.c/ReadImage/508. convert.exe: no
images defined `output.png' #
error/convert.c/ConvertImageCommand/3235.
Try this:
convert -background black -fill blue -font Arial -pointsize 72 label:"Lorem ipsum" output.png
C:\OPV2\binaries\FontToImage\convert.exe label:"abcd" C:\OPv2\test.png
convert.exe: unable to open image 'label:abcd': No such file or directory # error/blob.c/OpenBlob/3491.
convert.exe: no decode delegate for this image format ' # error/constitute.c/ReadImage/556.
convert.exe: no images definedC:\OPv2\test.png' # error/convert.c/ConvertImageCommand/3300.
Quite strange, isn't it ?
On my local computer, it's working file
C:\OPV2\binaries\FontToImage\convert.exe --version
Version: ImageMagick 7.0.8-23 Q16 x64 2019-01-02 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg lcms lqr lzma openexr pangocairo png ps raw rsvg tiff webp xml zlib
label is not reconized ...
Related
Use flutter dev app with macos desktop.
One local file: test1.md
In Dart code, I cann't find local file: test1.md
try
print(readText("test1.md"));
Exception has occurred:
FileSystemException (FileSystemException: Cannot open file, path = 'test1.md' (OS Error: No such file or directory, errno = 2))
print(Directory.current);
Output:
flutter: Directory: '/Users/jiangzhixiang/Library/Containers/com.example.enjoywork/Data'
How to find local file?
I am using unoconv to convert docx to pdf. All works great as long as I am passing the document via file name:
$ unoconv -f pdf --stdout test.docx
But as soon as I am using --stdin it doesn't work anymore:
$ unoconv -f pdf --stdin --stdout < test.docx
Traceback (most recent call last):
File "/usr/bin/unoconv", line 1275, in <module>
main()
File "/usr/bin/unoconv", line 1185, in main
inputfn = sys.stdin.read()
File "/usr/lib/python3.5/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xad in position 41: invalid start byte
It's the same file. Why doesn't this work?
Here is the file: https://nofile.io/f/bKz1zWf745K/test.docx
I think the problem is that the --stdin option doesn't do what one probably thinks it does.
In the error message, the variable name in line 1185 looks suspicious:
inputfn = sys.stdin.read()
And indeed, checking the source code, it seems that the text read from STDIN is interpreted as the file name, not the file content.
However, the documentation (man unoconv) is misleading:
--stdin
Read input file from stdin (filenames are ignored if provided)
This really doesn't sound like interpreting the input as file name.
I suggest that you file a bug report about this (maybe first check if there is one already).
When I load a mat file I've previously created in other system, i receive the following message:
Error using ==> load
Unable to read MAT file "..."
File may be corrupt.
Note: The dat file contains NaNs
I have some problems when i try to upload my ported BAR file from Android source code:
? There were 1 imported across 1 new bundle.
? Please review your imported release for errors.
? error in opening zip file System.exit calls not allowed!
? Invalid binary file (._xxxx_xxxx9144169860289695202._xxxx_xxxx)
? Invalid binary file (.classpath8029703777285450457.classpath)
? Invalid binary file (.project6368383898458048449.project)
? Invalid binary file (AndroidManifest.xml6041251884878318023.xml)
? Invalid binary file (lint.xml4949050568352344802.xml)
? Invalid binary file (project.properties2478192746766803707.properties)
? Invalid binary file (._.classpath1279851333217904503.classpath)
? Invalid binary file (._.project4963501103302439211.project)
? Invalid binary file (._.settings6403994606986425206.settings)
? Invalid binary file (._AndroidManifest.xml7465961263356524197.xml)
? Invalid binary file (._assets7820763530849924867._assets)
? Invalid binary file (._bin4158243671404695308._bin)
? Invalid binary file (._gen1637939995840746927._gen)
? Invalid binary file (._lint.xml1798100153005616928.xml)
? Invalid binary file (._project.properties5961637973232398652.properties)
? Invalid binary file (._res6434086574236390329._res)
? Invalid binary file (._src2834477385955816881._src)
? Invalid binary file (org.eclipse.jdt.core.prefs4155356269041672159.prefs)
? Invalid binary file (._org.eclipse.jdt.core.prefs9193271982940470960.prefs)
? Invalid binary file (xxx.png3405033461431571502.png)
? Invalid binary file (xxx.png4185722626726835686.png)
? Invalid binary file (xxx.png6629508964401705944.png)
? Invalid binary file (xxx.png3951634087592980248.png)
? Invalid binary file (xxx.png6610366709435995090.png)
? Invalid binary file (xxx.png1462654443485611662.png)
? Invalid binary file (xxx.png8028919413158108187.png)
? Invalid binary file (xxx.png4161610266299604612.png)
? Invalid binary file (xxx.png5044369819175750647.png)
? Invalid binary file (xxx.png5478583367906230563.png)
? Invalid binary file (xxx.png5690369531509857973.png)
? Invalid binary file (xxx.png6665571246252631333.png)
? Invalid binary file (xxx.png3067066318731066885.png)
? Invalid binary file (xxx.png6182415731813752828.png)
? Invalid binary file (xxx.png5564879140277324991.png)
? Invalid binary file (xxx.png4168273330724460934.png)
? Invalid binary file (xxx.png7424605744156994400.png)
? Invalid binary file (xxx.png2143495245658084337.png)
? Invalid binary file (xxx.png3892067674043532572.png)
? Invalid binary file (xxx.png4328939009206690917.png)
? Invalid binary file (xxx.png7250101288947739322.png)
? Invalid binary file (xxx.png7628414616850024800.png)
? Invalid binary file (xxx.png2957123836880933253.png)
? Invalid binary file (xxx.png4353124853960754842.png)
? Invalid binary file (xxxx_03a.png7757004586244259927.png)
? Invalid binary file (xxxx_04.png5609950302680314331.png)
? Invalid binary file (xxxx_05a.png7024629859302122584.png)
? Invalid binary file (xxxx_06a.png945221159178482861.png)
? Invalid binary file (xxxx_07a.png7840661270791463333.png)
? Invalid binary file (xxxx_10a.png6537401483977947062.png)
? Invalid binary file (xxxx_11a.png4089299093947598209.png)
? Invalid binary file (xxxx_12a.png3914559505571699107.png)
? Invalid binary file (xxxx_13a.png4237917822965060007.png)
? Invalid binary file (xxxx_14a.png4420968238125384725.png)
? Invalid binary file (xxxx_16a.png4065488083709433818.png)
? Invalid binary file (xxxx_17a.png5873048186416020071.png)
? Invalid binary file (xxxx_18a.png8827417423356601674.png)
? Invalid binary file (xxxx_19a.png8070767671513894861.png)
? Invalid binary file (xxxx_20a.png6509217252450288713.png)
? Invalid binary file (xxx.png1676755072511485567.png)
? Invalid binary file (xxx.png282227566932005746.png)
? Invalid binary file (xxx.png7708237495757376660.png)
? Invalid binary file (xxx.png1138657404332473780.png)
? Invalid binary file (xxx.png8537802648820188227.png)
But my bar run normally in my Playbook simulator.
How can i fix this?
Thanks you
I'm trying to create train data for a specific font for tesseract and failing at the following command:
tesseract eng.uknumberplate.exp0.tiff foo bach.nochop makebox
and i get the following output in the terminal.
read_params_file: Can't open bach.nochop
Tesseract Open Source OCR Engine v3.02.02 with Leptonica
Error in findTiffCompression: function not present
Error in pixReadStreamTiff: function not present
Error in pixReadStream: tiff: no pix returned
Error in pixRead: pix not read
Unsupported image type.
I have installed tesseract and leptonica through MacPort.
following is the output of tesseract -v command in terminal.
tesseract 3.02.02
leptonica-1.68
zlib 1.2.5
It is batch.nochop, not bach.nochop.
You have to convert the colorspace of your TIFF. Use ImageMagick to convert your pdf file into a TIFF image:
$convert -density 300 -depth 8 or 4 file.pdf output.tif
$convert output.tif -colorspace rgb -type truecolor output.tif
And after this try to run makebox cmd.