in my Ubuntu 19.10 when trying to convert .jpg to .pdf :

convert gives :

joso@joso-Aspire-ES1-433:~$ convert ‘/home/joso/Desktop/Marticeva etaziranje/IMG_20200104_102541.jpg’ output.pdf
convert: no decode delegate for this image format `JPG’ @ error/constitute.c/ReadImage/562.
convert: no images defined `output.pdf’ @ error/convert.c/ConvertImageCommand/3273.

I can open jpg file. In terminal:

joso@joso-Aspire-ES1-433:~$ file /home/joso/Desktop/Marticeva\ etaziranje/IMG_20200104_102541.jpg
/home/joso/Desktop/Marticeva etaziranje/IMG_20200104_102541.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, manufacturer=HUAWEI, model=ATU-L21, xresolution=150, yresolution=158, resolutionunit=2, software=ATU-L21-user 8.0.0 HUAWEIATU-L21 156(C432) release-keys, datetime=2020:01:04 10:25:41, GPS-Data], baseline, precision 8, 3120x4160, components 3
joso@joso-Aspire-ES1-433:~$

using command :

joso@joso-Aspire-ES1-433:~$ cp /home/joso/Desktop/Marticeva\ etaziranje/IMG_20200104_102541.jpg foo.jpg; convert foo.jpg foo.pdf 
convert: no decode delegate for this image format JPG' @ error/constitute.c/ReadImage/562. 
convert: no images definedfoo.pdf' @ error/convert.c/ConvertImageCommand/3273. 
joso@joso-Aspire-ES1-433:~$

still the same, no success.

I tried with 2 other files:

joso@joso-Aspire-ES1-433:~$ convert '/home/joso/Pictures/IMG_20191214_120216.jpg'  output.pdf
convert: no decode delegate for this image format `JPG' @ error/constitute.c/ReadImage/562.
convert: no images defined `output.pdf' @ error/convert.c/ConvertImageCommand/3273.

joso@joso-Aspire-ES1-433:~$ convert '/home/joso/Pictures/John Selman2.jpeg' output.pdf
convert: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/562.
convert: no images defined `output.pdf' @ error/convert.c/ConvertImageCommand/3273.

joso@joso-Aspire-ES1-433:~$ convert /home/joso/Pictures/IMG_20191214_120216.jpg output.pdf
convert: no decode delegate for this image format `JPG' @ error/constitute.c/ReadImage/562.
convert: no images defined `output.pdf' @ error/convert.c/ConvertImageCommand/3273.
joso@joso-Aspire-ES1-433:~$ 


joso@joso-Aspire-ES1-433:~$ convert -compress jpeg /home/joso/Pictures/IMG_20191214_120216.jpg /home/joso/Pictures/output.pdf convert: no decode delegate for this image format JPG' @ error/constitute.c/ReadImage/562. convert: no images defined/home/joso/Pictures/output.pdf' @ error/convert.c/ConvertImageCommand/3273.

I can open the file in an image viewer and file reports it's a normal jpg:

$ file /home/joso/Desktop/Marticeva\ etaziranje/IMG_20200104_102541.jpg 
/home/joso/Desktop/Marticeva etaziranje/IMG_20200104_102541.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, manufacturer=HUAWEI, model=ATU-L21, xresolution=150, yresolution=158, resolutionunit=2, software=ATU-L21-user 8.0.0 HUAWEIATU-L21 156(C432) release-keys, datetime=2020:01:04 10:25:41, GPS-Data], baseline, precision 8, 3120x4160, components 3

I also tried this as suggested in the comments:

$ convert -compress jpeg /home/joso/Pictures/IMG_20191214_120216.jpg    
/home/joso/Pictures/output.pdf convert: no decode delegate for this image format JPG' @ error/constitute.c/ReadImage/562. convert: no images defined/home/joso/Pictures/output.pdf' @ error/convert.c/ConvertImageCommand/3273.

What am I doing wrong?


Solution 1:

Keep it simple. Open your jpg file with libre office draw (or impress). Once open in the menu "file" (i suppose in English) export this file with " export as pdf")