Fix issue with JPG export

This commit is contained in:
leyghisbb 2020-08-30 11:34:05 +02:00
parent 928417c3a7
commit 1d2e3a8790

View File

@ -169,7 +169,7 @@ class JPEGExport(inkex.Effect):
command = "magick \"%sjpinkexp.png\" -sampling-factor 4:4:4 -strip -interlace JPEG -colorspace RGB -quality %s -density %s \"%s\" " % (tmp, self.options.quality, self.options.density, outfile)
# inkex.utils.debug(command)
elif find_executable('convert'):
command = "convert \"%sjpinkexp.png\" -sampling-factor 4:4:4 -strip -interlace JPEG -colorspace RGB -quality %s -density %s \%s\" " % (tmp, self.options.quality, self.options.density, outfile)
command = "convert \"%sjpinkexp.png\" -sampling-factor 4:4:4 -strip -interlace JPEG -colorspace RGB -quality %s -density %s \"%s\" " % (tmp, self.options.quality, self.options.density, outfile)
# inkex.utils.debug(command)
else:
inkex.errormsg(_('ImageMagick does not appear to be installed.'))
@ -186,4 +186,4 @@ class JPEGExport(inkex.Effect):
else:
return '/tmp/'
JPEGExport().run()
JPEGExport().run()