[gdal-dev] Problem reading JPEG image format

Even Rouault even.rouault at mines-paris.org
Fri Apr 27 08:24:43 EDT 2012


Selon akshay gupta <akshaygupta202 at gmail.com>:

> Hi all,
>
> I am having problems trying to read .jpg images using gdal. Using GDAL I
> am  able to read jpg images using GA_ReadOnly mode but  in GA_Update mode
> its giving errors. Can any one tell me what might be the problem, and
> suggest me a turnaround to open jpg image in update mode.

It is expected and there is no support for opening a JPEG image in update mode.
The JPEG format is essentially read-only or write-only. You cannot modify the
imagery in place without regenerating a full file. You can use the CreateCopy()
method of the JPEG driver for that.

>
> Thanks in advance,
> Akhy Hückelheim
>




More information about the gdal-dev mailing list