mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 17:19:03 +00:00
Remove deprecated convert and add required -auto-orient flags (#1118)
Co-authored-by: Konstantin Koval
This commit is contained in:
@@ -44,8 +44,8 @@ func (cli *MagickCli) IsInstalled() bool {
|
||||
|
||||
func (cli *MagickCli) EncodeJpeg(inputPath string, outputPath string, jpegQuality int) error {
|
||||
args := []string{
|
||||
"convert",
|
||||
inputPath,
|
||||
"-auto-orient",
|
||||
"-quality", fmt.Sprintf("%d", jpegQuality),
|
||||
outputPath,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user