images with invalid jpeg marker -


i encountered website images consistently throws 'invalid jpeg marker' error when downloaded. wondering possible intentionally doing causes error of users try download , use images?

i want protect jpeg resources of website unauthorised use. possible change in jpeg header or meta tags jpg images display fine on browser if downloads own use throws error 'invalid jpeg marker'? (i don't intend discuss alternative ways of protecting images online or limitations of it.)

if can display on browser, can display on else. happening decoder using view when downloaded more strict web browser. presume not using browser view them after downloading.

you run "file" command make sure images jpegs. if so, there number of programs available analyze structure of jpeg stream. use 1 see what's going on image. may have odd marker ordering or possibly jpeg image not occur right @ start of file stream. i've seen weird jpegs there bytes after appn marker , before next jpeg marker. decoders ignored bytes others puked.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -