Fix issue with JPG export
This commit is contained in:
parent
928417c3a7
commit
1d2e3a8790
@ -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)
|
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)
|
# inkex.utils.debug(command)
|
||||||
elif find_executable('convert'):
|
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)
|
# inkex.utils.debug(command)
|
||||||
else:
|
else:
|
||||||
inkex.errormsg(_('ImageMagick does not appear to be installed.'))
|
inkex.errormsg(_('ImageMagick does not appear to be installed.'))
|
||||||
@ -186,4 +186,4 @@ class JPEGExport(inkex.Effect):
|
|||||||
else:
|
else:
|
||||||
return '/tmp/'
|
return '/tmp/'
|
||||||
|
|
||||||
JPEGExport().run()
|
JPEGExport().run()
|
||||||
|
Reference in New Issue
Block a user