convertio / convertio-cli Goto Github PK
View Code? Open in Web Editor NEWCommand Line Interface for Convertio
Command Line Interface for Convertio
i was trying to execute this command
convertio -f svg Screenshot\ from\ 2023-08-12\ 20-08-24.png
And got this error
`PHP Fatal error: Uncaught Error: Non-static method ConvertioCLI\Info::printSystemMessage() cannot be called statically in phar:///usr/local/bin/convertio/src/Info.php:22
Stack trace:
#0 phar:///usr/local/bin/convertio/cli.php(30): ConvertioCLI\Info::printError()
#1 /usr/local/bin/convertio(10): include('...')
#2 {main}
thrown in phar:///usr/local/bin/convertio/src/Info.php on line 22
`
manifest length read was "8526" should be "1599360065"
$ convertio -f jpg ./some-image-with-hyphen.png
The API will convert some-image-with-hyphen.png
to some-image-with-hyphen.jpg
.
Error:
No readable input files
In class CLIOptions
is a regex used that checks arguments against -(\w+)
and if matching the argument is considered an option.
I fixed that and will provide a pull request in a couple of minutes.
Just got this message converting my first file (PDF to JPG) with the convertio CLI
DA> ~ convertio -f jpg /Users/../Downloads/8D29436916DF3C5682B1727CB688B0AD.pdf
/Users/../Downloads/8D29436916DF3C5682B1727CB688B0AD.pdf: Done! => /Users/../8D29436916DF3C5682B1727CB688B0AD.pdf.jpg [248208 Bytes]
PHP Fatal error: Uncaught Error: Non-static method ConvertioCLI\Info::printSystemMessage() cannot be called statically in phar:///usr/local/bin/convertio/src/Info.php:28
Stack trace:
#0 phar:///usr/local/bin/convertio/cli.php(91): ConvertioCLI\Info::printLine('\nAll Done!\n')
#1 /usr/local/bin/convertio(10): include('phar:///usr/loc...')
#2 {main}
thrown in phar:///usr/local/bin/convertio/src/Info.php on line 28
Fatal error: Uncaught Error: Non-static method ConvertioCLI\Info::printSystemMessage() cannot be called statically in phar:///usr/local/bin/convertio/src/Info.php:28
Stack trace:
#0 phar:///usr/local/bin/convertio/cli.php(91): ConvertioCLI\Info::printLine('\nAll Done!\n')
#1 /usr/local/bin/convertio(10): include('phar:///usr/loc...')
#2 {main}
thrown in phar:///usr/local/bin/convertio/src/Info.php on line 28
The file did convert and was placed in the folder specified.
I like the WebUI of Convert.io, but as a paying customer I want to convert certain files quickly and easily. So I looked into adding Convert.io as a MacOS Shortcuts in my Finder and started exploring the API and CLI.
I'm fine with the the PHP dependency for the CLI, although it is a big download for a small feature. But, wget is not natively installed on MacOS anymore and flagging a download for no certificate checking seems "scary".
I don't know what the best option is for the contributors, but wondering if you would explore some options?
In the end, I would just like to have a more secure and faster install for the CLI and any efforts there would be increase my confidence that I'm not putting my local machine at risk with the CLI install.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.