« Because it's Friday: Every Wes Anderson Movie | Main | Microsoft R Open 3.4.4 now available »

April 30, 2018

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

HI, I have a error with my image "JPEG decompression error: Not a JPEG file: starts with 0x89 0x50" . I think that this error is about the size of my image . Is it true ?

I'm guessing the error is exactly what it suggests, and your image isn't really a JPG. Sometimes you can have (say) a PNG with a ".jpg" extension. Try loading your image into an image editor and explicitly saving it as a JPEG and see if the saved file works.

You can also try read.bitmap() from the readbitmap package, which, by default, will determine the actual image type (using the image's magic numbers) regardless of the extension, and load the image (if it is JPG, PNG, BMP, or, with the development version on GitHub, TIFF).

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Search Revolutions Blog




Got comments or suggestions for the blog editor?
Email David Smith.
Follow revodavid on Twitter Follow David on Twitter: @revodavid
Get this blog via email with Blogtrottr