문제

I would like to convert a jpg image to a pdf file using ImageMagick convert. I can successfully do so using the following:

convert image.jpg image.pdf

How could I convert the image if the original file name was "image" and not "image.jpg", and the target file name is "image" and not "image.pdf"?

도움이 되었습니까?

해결책

You can use Explicit Image Format to force convert to use a specific format, regardless of filename.

convert jpg:image_source pdf:image_out
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top