python

# pip install Pillow

from PIL import Image

Image.MAX_IMAGE_PIXELS = None
im = Image.open('/home/data-engineer/workspace/test_data.jp2')
im.save('/home/data-engineer/workspace/test_data.tif')

make thumnail

gdal_translate -of PNG -b 1 -b 2 -b 3 -outsize 6.25% 6.25% input.tif output.png

gdal

gdal_translate -of PNG -ot Byte input.tif output.png