mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22:55 +00:00
do not use the complete suffix as format in imgconv utility
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e7c90144f1
commit
baa6583dd2
1 changed files with 5 additions and 1 deletions
|
@ -46,7 +46,11 @@ int main(int argc, char *argv[])
|
|||
|
||||
const QString outputpath(args.at(1));
|
||||
const QFileInfo outputinfo(outputpath);
|
||||
const QByteArray outputformat(outputinfo.completeSuffix().toLocal8Bit());
|
||||
QByteArray outputformat(outputinfo.suffix().toLocal8Bit());
|
||||
if (outputpath.endsWith(".svg.gz")) {
|
||||
// the only exception I am aware of
|
||||
outputformat = "svgz";
|
||||
}
|
||||
if (outputformat.isEmpty()) {
|
||||
qWarning() << "Could not determine format for" << outputpath;
|
||||
return 3;
|
||||
|
|
Loading…
Add table
Reference in a new issue