-1

The below lines of code shows the export of the image to the cloud. I am unable to convert my file to JPEG/PNG. I want my image to be saved in PNG/JPEG in the cloud.

    Export.image.toCloudStorage({
    image:  rgb.select(0,1,2),
    description: 'cog',
    bucket: 'sample_bucket',
    scale: 30,
    region:ft_bnd,
    fileFormat: 'png',
    formatOptions: {
    cloudOptimized: true
    },
    dimensions:256*256
    });

closed as unclear what you're asking by Spacedman, Andre Silva, Vince, Mark Ireland, Dan C Dec 31 '18 at 16:21

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Does that code work but not do what you want? Does the documentation tell you you can do what you want to do? – Spacedman Dec 29 '18 at 16:47
1

Your question isn't clear because you haven't specified what's not working, but you can't specify a scale + region and dimensions. Those options are mutually exclusive.

  • I can't export the image in png /jpeg format . I wanted to know if Earth engine has provided any such faclity to export the image in cloud in jpeg or png format – Sohini Goswami Jan 2 at 7:25
2

JPG or PNG are not supported for image export.

You can export images from Earth Engine in GeoTIFF or TFRecord format.

As per the GEE Exporting Data documentation.

Not the answer you're looking for? Browse other questions tagged or ask your own question.