Re: [Geoserver-users] Getting the best results with Raster

2021-07-20 Thread Jody Garnett
Neil:

Can you describe more in what way the quality is lacking? Is it distorted,
or pixelated, or what? Did you do any data prep to your geotiff, say
introduce an overview? If so what sampling technique did you use?
What does "gdalinfo" return for your image?

Some general guidance from Paul Ramsey is here
https://blog.cleverelephant.ca/2015/02/geotiff-compression-for-dummies.html
--
Jody Garnett


On Tue, 20 Jul 2021 at 19:00, Neil Saunders 
wrote:

> Hi folks,
>
>
>
> Apologies if this is a basic question – I’m fairly new to GIS data.
>
>
>
> I’m using Geoserver 2.18.2 to host historical aerial clips and exporting
> the rasters with Arc Map 10.6 to Geotiff with a 500m buffer of a property.
> However I’m finding the quality of the image in Geoserver does not match
> the quality in Arc Map when zoomed in.
>
>
>
> I’ve tried exporting at different DPI but find 300 or above has no
> discernible improvement. I’m not using any compression when creating the
> TIFF and using GeoTIFF Tags. I’ve read about resampling and how it can
> alter the image quality but not sure if that’s it.
>
>
>
> Assuming this is not a new challenge, I’m curious what steps others have
> taken to get raster clips into Geoserver in a way that doesn’t compromise
> the image quality? I’m using the most detailed historical aerial
> photography as the use case requires inspection of features at the street
> level. Any help gratefully received!
>
>
>
> Kind Regards,
> Neil Saunders
> Business Consultant
>
>
> How was your Lotsearch experience? Click here
> .
>
> Lotsearch Pty Ltd
> Level 3, 68 Alfred Street, Milsons Point, NSW 2061
> +61 (0)2 8287 0680
>
> +61 (0) 413 379 883
> supp...@lotsearch.com.au
> www.lotsearch.com.au
>
>
>
>
> CONFIDENTIAL INFORMATION
> This transmission may be privileged and may contain confidential
> information intended only for the recipient(s) named above. Any other
> distribution, re-transmission, copying or disclosure of this message is
> strictly prohibited.
> If you have received this transmission in error, please notify me
> immediately by telephone or return email, and delete this message from your
> system. Thank you.
>
>
>
> [image: LinkedIn] 
>
>
>
>
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Getting the best results with Raster

2021-07-20 Thread COOK, JOHN via Geoserver-users
Hi Neil,

Have you tried changing the Default Interpolation option in the web UI?

This is in Services >> WMS.

[cid:image003.png@01D77DE2.B25DC690]

https://docs.geoserver.org/stable/en/user/services/wms/webadmin.html


Regards,

John

From: Neil Saunders 
Sent: 21 July 2021 02:25
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Getting the best results with Raster

Hi folks,

Apologies if this is a basic question - I'm fairly new to GIS data.

I'm using Geoserver 2.18.2 to host historical aerial clips and exporting the 
rasters with Arc Map 10.6 to Geotiff with a 500m buffer of a property. However 
I'm finding the quality of the image in Geoserver does not match the quality in 
Arc Map when zoomed in.

I've tried exporting at different DPI but find 300 or above has no discernible 
improvement. I'm not using any compression when creating the TIFF and using 
GeoTIFF Tags. I've read about resampling and how it can alter the image quality 
but not sure if that's it.

Assuming this is not a new challenge, I'm curious what steps others have taken 
to get raster clips into Geoserver in a way that doesn't compromise the image 
quality? I'm using the most detailed historical aerial photography as the use 
case requires inspection of features at the street level. Any help gratefully 
received!

Kind Regards,
Neil Saunders
Business Consultant

[cid:image004.png@01D77DE2.B9A63F40]
How was your Lotsearch experience? Click 
here.

Lotsearch Pty Ltd
Level 3, 68 Alfred Street, Milsons Point, NSW 2061
+61 (0)2 8287 0680
+61 (0) 413 379 883
supp...@lotsearch.com.au
www.lotsearch.com.au


CONFIDENTIAL INFORMATION
This transmission may be privileged and may contain confidential information 
intended only for the recipient(s) named above. Any other distribution, 
re-transmission, copying or disclosure of this message is strictly prohibited.
If you have received this transmission in error, please notify me immediately 
by telephone or return email, and delete this message from your system. Thank 
you.

[LinkedIn]


___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Getting the best results with Raster

2021-07-22 Thread Neil Saunders
Hi Jody,

Many thanks for that link – it should prove invaluable once I resolve the 
primary issue 😊 Thanks to others for suggestions - the primary issue appears to 
actually be related to the initial export from Arc Map 10.6 e.g. when the 
GeoTIFF is first created. The issue is a loss of quality (visually in 
pixellation) in the TIFF when working at a large scale (zoomed in). I’ve been 
exporting using Arc’s “300 dpi” setting with no compression. This might be off 
topic now but I wondered if anyone had experience / best practice when 
preparing GeoTIFF clips from Arc Map? Or perhaps there is a better tool like 
gdal or QGIS (I haven’t used these before). I’m working with large GeoTIFF 
“aerial frames” (800Mb) and satellite WMS layers and wish to export clipped 
GeoTIFF to specific buffers (500m) automatically.

I’ve compared exports against Arc Pro 2.8 which doesn’t have a “DPI” setting 
per se – only a resolution setting (width x height). When I set the resolution 
to match the Arc Map export, the resulting GeoTIFF does appear visually better 
and comparable to the original. All comments welcome!

Kind Regards,
Neil Saunders
Business Consultant

[cid:image001.png@01D77FA4.36709170]
How was your Lotsearch experience? Click 
here<https://airtable.com/shrkB2wJTJQ52z6e9>.

Lotsearch Pty Ltd
Level 3, 68 Alfred Street, Milsons Point, NSW 2061
+61 (0)2 8287 0680
+61 (0) 413 379 883
supp...@lotsearch.com.au
www.lotsearch.com.au


CONFIDENTIAL INFORMATION
This transmission may be privileged and may contain confidential information 
intended only for the recipient(s) named above. Any other distribution, 
re-transmission, copying or disclosure of this message is strictly prohibited.
If you have received this transmission in error, please notify me immediately 
by telephone or return email, and delete this message from your system. Thank 
you.

[LinkedIn]<https://linkedin.com/company/4823161>


From: Jody Garnett 
Sent: Wednesday, 21 July 2021 4:09 PM
To: Neil Saunders 
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Getting the best results with Raster

Neil:

Can you describe more in what way the quality is lacking? Is it distorted, or 
pixelated, or what? Did you do any data prep to your geotiff, say introduce an 
overview? If so what sampling technique did you use?
What does "gdalinfo" return for your image?

Some general guidance from Paul Ramsey is here 
https://blog.cleverelephant.ca/2015/02/geotiff-compression-for-dummies.html
--
Jody Garnett


On Tue, 20 Jul 2021 at 19:00, Neil Saunders 
mailto:neil.saund...@lotsearch.com.au>> wrote:
Hi folks,

Apologies if this is a basic question – I’m fairly new to GIS data.

I’m using Geoserver 2.18.2 to host historical aerial clips and exporting the 
rasters with Arc Map 10.6 to Geotiff with a 500m buffer of a property. However 
I’m finding the quality of the image in Geoserver does not match the quality in 
Arc Map when zoomed in.

I’ve tried exporting at different DPI but find 300 or above has no discernible 
improvement. I’m not using any compression when creating the TIFF and using 
GeoTIFF Tags. I’ve read about resampling and how it can alter the image quality 
but not sure if that’s it.

Assuming this is not a new challenge, I’m curious what steps others have taken 
to get raster clips into Geoserver in a way that doesn’t compromise the image 
quality? I’m using the most detailed historical aerial photography as the use 
case requires inspection of features at the street level. Any help gratefully 
received!

Kind Regards,
Neil Saunders
Business Consultant

[cid:image001.png@01D77FA4.36709170]
How was your Lotsearch experience? Click 
here<https://airtable.com/shrkB2wJTJQ52z6e9>.

Lotsearch Pty Ltd
Level 3, 68 Alfred Street, Milsons Point, NSW 2061
+61 (0)2 8287 0680
+61 (0) 413 379 883
supp...@lotsearch.com.au<mailto:supp...@lotsearch.com.au>
www.lotsearch.com.au<http://www.lotsearch.com.au>


CONFIDENTIAL INFORMATION
This transmission may be privileged and may contain confidential information 
intended only for the recipient(s) named above. Any other distribution, 
re-transmission, copying or disclosure of this message is strictly prohibited.
If you have received this transmission in error, please notify me immediately 
by telephone or return email, and delete this message from your system. Thank 
you.

[LinkedIn]<https://linkedin.com/company/4823161>


___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-feat

Re: [Geoserver-users] Getting the best results with Raster

2021-08-13 Thread Neil Saunders
Hi folks,

I’ve been looking at how to best prepare historical aerial photos for 
Geoserver. I had issues with exporting from ArcMap the individual aerial frames 
into Geotiffs – losing quality along the way. I’ve since worked that out.

I tried to apply Paul Ramsey’s GDAL steps to the exported files but didn’t get 
very far as these errors occurred:

C:\Program Files (x86)\GDAL>gdal_translate.exe -co COMPRESS=JPEG -co 
PHOTOMETRIC=YCBCR -co TILED=YES Aerial_1930.tif Aerial_1930-new.tif
Input file size is 3541, 3438
ERROR 1: MissingRequired:TIFF directory is missing required "StripOffsets" field
0ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

The 1930 aerial frame is black and white (as you would expect for the era). So 
I think the 2nd error is related to that. I tried removing the PHOTOMETRIC 
option from the command but…

C:\Program Files (x86)\GDAL>gdal_translate.exe -co COMPRESS=JPEG -co TILED=YES 
Aerial_1930.tif Aerial_1930-new.tif
Input file size is 3541, 3438
ERROR 1: MissingRequired:TIFF directory is missing required "StripOffsets" field
0...10...20...30...40...50...60...70...80ERROR 1: JPEGSetupEncode:BitsPerSample 
16 not allowed for JPEG
...ERROR 1: An error occured while writing a dirty block
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG

I decided to turn to a more recent image:

C:\Program Files (x86)\GDAL>gdal_translate.exe -co COMPRESS=JPEG -co 
PHOTOMETRIC=YCBCR -co TILED=YES Aerial_1994.tif Aerial_1994-new.tif
Input file size is 5521, 5361
0...ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.
ERROR 1: An error occured while writing a dirty block
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.

This is the first workflow I’ve tried and I’m open to any that others on the 
list might use when preparing Geotiff for Geoserver.

Many thanks and happy Friday (in Australia),
Neil


From: Jody Garnett 
Sent: Wednesday, 21 July 2021 4:09 PM
To: Neil Saunders 
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Getting the best results with Raster

Neil:

Can you describe more in what way the quality is lacking? Is it distorted, or 
pixelated, or what? Did you do any data prep to your geotiff, say introduce an 
overview? If so what sampling technique did you use?
What does "gdalinfo" return for your image?

Some general guidance from Paul Ramsey is here 
https://blog.cleverelephant.ca/2015/02/geotiff-compression-for-dummies.html
--
Jody Garnett


On Tue, 20 Jul 2021 at 19:00, Neil Saunders 
mailto:neil.saund...@lotsearch.com.au>> wrote:
Hi folks,

Apologies if this is a basic question – I’m fairly new to GIS data.

I’m using Geoserver 2.18.2 to host historical aerial clips and exporting the 
rasters with Arc Map 10.6 to Geotiff with a 500m buffer of a property. However 
I’m finding the quality of the image in Geoserver does not match the quality in 
Arc Map when zoomed in.

I’ve tried exporting at different DPI but find 300 or above has no discernible 
improvement. I’m not using any compression when creating the TIFF and using 
GeoTIFF Tags. I’ve read about resampling and how it can alter the image quality 
but not sure if that’s it.

Assuming this is not a new challenge, I’m curious what steps others have taken 
to get raster clips into Geoserver in a way that doesn’t compromise the image 
quality? I’m using the most detailed historical aerial photography as the use 
case requires inspection of features at the street level. Any help gratefully 
received!

Kind Regards,
Neil Saunders
Business Consultant

[cid:image001.png@01D79051.0A7799C0]
How was your Lotsearch experience? Click 
here<https://airtable.com/shrkB2wJTJQ52z6e9>.

Lotsearch Pty Ltd
Level 3, 68 Alfred Street, Milsons Point, NSW 2061
+61 (0)2 8287 0680
+61 (0) 413 379 883
supp...@lotsearch.com.au<mailto:supp...@lotsearch.com.au>
www.lotsearch.com.au<http://www.lotsearch.com.au>


CONFIDENTIAL INFORMATION
This transmission may be privileged and may contain confidential information 
intended only for the recipient(s) named above. Any other distribution, 
re-transmission, copying or disclosure of this message is strictly prohibited.
If you have received this transmission in error, please notify me immediately 
by telephone or return email, and delete this message from your system. Thank 
you.

[LinkedIn]<https://linkedin.com/company/4823161>


___
Geoserver-users mailing list

Please make sure you read the following two resources before po

Re: [Geoserver-users] Getting the best results with Raster

2021-08-13 Thread Rahkonen Jukka (MML)
Hi,

The first error ”TIFF directory is missing required "StripOffsets" field” is 
clear, GDAL thinks that your TIFF file is corrupted. Does it work with ArcMap? 
If it does then it might interest libtiff and GDAL developers, and if the image 
is really corrupted then it should interest also ESRI people.

Removing PHOTOMETRIC for 1-band image is the right thing to do.

The third error means that your source image has a bit depth of 16 bits. JPEG 
supports only 8 bit, and with some tricks 12 bits. You have two options: either 
convert your images into 8 bit (that should work fine, most aerial images used 
in web services are 8 bit), or use some compression method that supports 16 
bit, like DEFLATE.

There are many kind of GeoTIFFs. You can get information about what you have 
with gdalinfo utility.

-Jukka Rahkonen-

Lähettäjä: Neil Saunders 
Lähetetty: perjantai 13. elokuuta 2021 10.30
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] Getting the best results with Raster

Hi folks,

I’ve been looking at how to best prepare historical aerial photos for 
Geoserver. I had issues with exporting from ArcMap the individual aerial frames 
into Geotiffs – losing quality along the way. I’ve since worked that out.

I tried to apply Paul Ramsey’s GDAL steps to the exported files but didn’t get 
very far as these errors occurred:

C:\Program Files (x86)\GDAL>gdal_translate.exe -co COMPRESS=JPEG -co 
PHOTOMETRIC=YCBCR -co TILED=YES Aerial_1930.tif Aerial_1930-new.tif
Input file size is 3541, 3438
ERROR 1: MissingRequired:TIFF directory is missing required "StripOffsets" field
0ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

The 1930 aerial frame is black and white (as you would expect for the era). So 
I think the 2nd error is related to that. I tried removing the PHOTOMETRIC 
option from the command but…

C:\Program Files (x86)\GDAL>gdal_translate.exe -co COMPRESS=JPEG -co TILED=YES 
Aerial_1930.tif Aerial_1930-new.tif
Input file size is 3541, 3438
ERROR 1: MissingRequired:TIFF directory is missing required "StripOffsets" field
0...10...20...30...40...50...60...70...80ERROR 1: JPEGSetupEncode:BitsPerSample 
16 not allowed for JPEG
...ERROR 1: An error occured while writing a dirty block
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG

I decided to turn to a more recent image:

C:\Program Files (x86)\GDAL>gdal_translate.exe -co COMPRESS=JPEG -co 
PHOTOMETRIC=YCBCR -co TILED=YES Aerial_1994.tif Aerial_1994-new.tif
Input file size is 5521, 5361
0...ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.
ERROR 1: An error occured while writing a dirty block
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.

This is the first workflow I’ve tried and I’m open to any that others on the 
list might use when preparing Geotiff for Geoserver.

Many thanks and happy Friday (in Australia),
Neil


From: Jody Garnett mailto:jody.garn...@gmail.com>>
Sent: Wednesday, 21 July 2021 4:09 PM
To: Neil Saunders 
mailto:neil.saund...@lotsearch.com.au>>
Cc: 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Getting the best results with Raster

Neil:

Can you describe more in what way the quality is lacking? Is it distorted, or 
pixelated, or what? Did you do any data prep to your geotiff, say introduce an 
overview? If so what sampling technique did you use?
What does "gdalinfo" return for your image?

Some general guidance from Paul Ramsey is here 
https://blog.cleverelephant.ca/2015/02/geotiff-compression-for-dummies.html
--
Jody Garnett


On Tue, 20 Jul 2021 at 19:00, Neil Saunders 
mailto:neil.saund...@lotsearch.com.au>> wrote:
Hi folks,

Apologies if this is a basic question – I’m fairly new to GIS data.

I’m using Geoserver 2.18.2 to host historical aerial clips and exporting the 
rasters with Arc Map 10.6 to Geotiff with a 500m buffer of a property. However 
I’m finding the quality of the image in Geoserver does not match the quality in 
Arc Map when zoomed in.

I’ve tried exporting at different DPI but find 300 or above has no discernible 
improvement. I’m not using any compression when creating the TIFF and using 
GeoTIFF Tags. I’ve read about resampling and how it can alter the image quality 
but not sure if that’s it.

Assuming this is not a new challenge, I’m curious what steps others have taken 
to get raster clips into Geoserver in a way that doesn’t compromise the image 
quality? I’m using the most detai

Re: [Geoserver-users] Getting the best results with Raster

2021-09-29 Thread Neil Saunders
Thanks Jukka. Turned out the “StripOffets” issue was related to the files being 
on a network drive. Running on local drive now 😊

From: Rahkonen Jukka (MML) 
Sent: Friday, 13 August 2021 6:28 PM
To: Neil Saunders ; 
geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Getting the best results with Raster

Hi,

The first error ”TIFF directory is missing required "StripOffsets" field” is 
clear, GDAL thinks that your TIFF file is corrupted. Does it work with ArcMap? 
If it does then it might interest libtiff and GDAL developers, and if the image 
is really corrupted then it should interest also ESRI people.

Removing PHOTOMETRIC for 1-band image is the right thing to do.

The third error means that your source image has a bit depth of 16 bits. JPEG 
supports only 8 bit, and with some tricks 12 bits. You have two options: either 
convert your images into 8 bit (that should work fine, most aerial images used 
in web services are 8 bit), or use some compression method that supports 16 
bit, like DEFLATE.

There are many kind of GeoTIFFs. You can get information about what you have 
with gdalinfo utility.

-Jukka Rahkonen-

Lähettäjä: Neil Saunders 
mailto:neil.saund...@lotsearch.com.au>>
Lähetetty: perjantai 13. elokuuta 2021 10.30
Vastaanottaja: 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
Aihe: Re: [Geoserver-users] Getting the best results with Raster

Hi folks,

I’ve been looking at how to best prepare historical aerial photos for 
Geoserver. I had issues with exporting from ArcMap the individual aerial frames 
into Geotiffs – losing quality along the way. I’ve since worked that out.

I tried to apply Paul Ramsey’s GDAL steps to the exported files but didn’t get 
very far as these errors occurred:

C:\Program Files (x86)\GDAL>gdal_translate.exe -co COMPRESS=JPEG -co 
PHOTOMETRIC=YCBCR -co TILED=YES Aerial_1930.tif Aerial_1930-new.tif
Input file size is 3541, 3438
ERROR 1: MissingRequired:TIFF directory is missing required "StripOffsets" field
0ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

The 1930 aerial frame is black and white (as you would expect for the era). So 
I think the 2nd error is related to that. I tried removing the PHOTOMETRIC 
option from the command but…

C:\Program Files (x86)\GDAL>gdal_translate.exe -co COMPRESS=JPEG -co TILED=YES 
Aerial_1930.tif Aerial_1930-new.tif
Input file size is 3541, 3438
ERROR 1: MissingRequired:TIFF directory is missing required "StripOffsets" field
0...10...20...30...40...50...60...70...80ERROR 1: JPEGSetupEncode:BitsPerSample 
16 not allowed for JPEG
...ERROR 1: An error occured while writing a dirty block
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG

I decided to turn to a more recent image:

C:\Program Files (x86)\GDAL>gdal_translate.exe -co COMPRESS=JPEG -co 
PHOTOMETRIC=YCBCR -co TILED=YES Aerial_1994.tif Aerial_1994-new.tif
Input file size is 5521, 5361
0...ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.
ERROR 1: An error occured while writing a dirty block
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.
ERROR 1: JPEGSetupEncode:BitsPerSample 16 not allowed for JPEG
ERROR 1: WriteEncodedTile/Strip() failed.

This is the first workflow I’ve tried and I’m open to any that others on the 
list might use when preparing Geotiff for Geoserver.

Many thanks and happy Friday (in Australia),
Neil


From: Jody Garnett mailto:jody.garn...@gmail.com>>
Sent: Wednesday, 21 July 2021 4:09 PM
To: Neil Saunders 
mailto:neil.saund...@lotsearch.com.au>>
Cc: 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Getting the best results with Raster

Neil:

Can you describe more in what way the quality is lacking? Is it distorted, or 
pixelated, or what? Did you do any data prep to your geotiff, say introduce an 
overview? If so what sampling technique did you use?
What does "gdalinfo" return for your image?

Some general guidance from Paul Ramsey is here 
https://blog.cleverelephant.ca/2015/02/geotiff-compression-for-dummies.html
--
Jody Garnett


On Tue, 20 Jul 2021 at 19:00, Neil Saunders 
mailto:neil.saund...@lotsearch.com.au>> wrote:
Hi folks,

Apologies if this is a basic question – I’m fairly new to GIS data.

I’m using Geoserver 2.18.2 to host historical aerial clips and exporting the 
rasters with Arc Map 10.6 to Geotiff with a 500m buffer of a property. However 
I’m finding the quality of the image in Geoserver does not match the quality in 
Arc Map when zoomed in.

I’ve tried exporting at d