@akamboj wrote:
I’m getting below error while reading the images-
Error in readJPEG(x, …) : JPEG decompression error: Not a JPEG file: starts with 0x89 0x50
As I have all the images in JPEG format but when I used the image_read() function from the magick package in R, I found that some of the images having PNG format.
So, How to find all those images where there is a change in extension? Also, how to convert these type of images in pixel format?
Posts: 1
Participants: 1