This question already has an answer here:

I'm using a JPG file (8bit unsigned), together with a .jgw and the .jpg.aux.xml having the projection. The image displays well in ArcGIS and QGIS.

Now I want to create the image in Geoserver 2.11.0 as a 'WorldImage' store, and then create a Web Map Service around it. But the image doesn't work in 'Layer preview'. You see nothing.

When I try to consume the WMS in ArcGIS, this is the error I get.

enter image description here

Any ideas?

marked as duplicate by Ian Turton geoserver Feb 25 at 13:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    did you try increasing the amount of heap space? – Ian Turton Feb 25 at 13:12
  • 1
    But increasing the heap size is not really the right thing to do. You have obviously quite a large jpeg file and for reading any data from a jpeg image you must uncompress the whole file. Convert you image into a tiled, internally jpeg-compressed GeoTIFF, add overviews into the image, and you can use it much faster on GeoServer, QGIS, and ArcGIS. – user30184 Feb 25 at 13:22
  • will gdal_translate -of GTiff -ot Byte -co COMPRESS=JPEG -co TILED=YES input.jpg output.tif do the job? – Web-GIS entrepreneur Feb 25 at 13:44
  • 1
    Yes. Photointerpretation YCBCR may yield smaller images but it depends on what sort of image you have. Assigning projection with -a_srs is probably a good idea too. – user30184 Feb 25 at 14:31

Browse other questions tagged or ask your own question.