Extra black area after exporting image from Google Earth Engine to ArcMap - google-earth-engine

When a .tiff image exported from GEE opened in ArcMap, why the extra black background appears along with the required geometry?
Using this code for exporting to google drive:
Export.image.toDrive({image: classified, description: 'GreenLand', region: MH, scale: 10, });
Attaching the screenshot for a better understanding.

It's a bit difficult to tell since I cannot access the script, but replacing image for image.clip(MH) might do the trick. Let me know how that worked.

Related

Leaflet r map saving issue

I have used addlogo to my leaflet map which displays my organizations' logo on the bottom right of the map.
This is logo visible in the viewer within R. However when I save the map the logo is not visible in either a png or HTML format. Please view the code below and the attachments.
Any advice would be appreciated.
Best Wishes
MD
I have used webshot to save as HTML but still the same issue
save the file to png
mapshot(m, file = "myfilepath", remove_controls = NULL)
The output should be saved with the logo at the bottom right hand visible.
Instead of using webshot, you should consider to try webshot2. See my detailed answer to the similar case.
The code:
# Webshot and phantomjs have been previously installed.
library(webshot2)

R script to insert images into Google Sheets

Is there a way to insert images, in this case ggplot2 charts, into a Google Sheet, using an R script? Maybe using the googlesheets package?
I see how to add an image to an Excel spreadsheet and I can add an image to a Google Sheet in my browser via Insert -> Image in the Sheets menus. But I'd like to add the image to my sheet from within an R script.
This is a bit of a hack, and it seems the image will take exactly the size of one cell by default. But it is a way to insert images:
x <- gs_edit_cells(ss=x, ws="y", input='=IMAGE("https://i.stack.imgur.com/FrDZc.jpg")')
You can then manually from within Google Sheets resize the cell and thus the image as well.
Of course the new problem is now how to give an image a web-address from within R --- but I wouldn't think that is too hard.

How do I extract a .jpg or .png from a website using a zoom window

I'm trying to download an image from this website:
http://digitalcollections.tcd.ie/home/index.php?DRIS_ID=MS58_003v
from their digitization of the Book of Kells. They obviously want to share the images with the world. My problem is that when I right-click to save image, all I get is a portion of the image about 750 by 950 pixels. If I wanted to, I could screen shot it, segment by segment and then assemble it all in MSPaint, but that is tedious and I might not get the re-allignments right. So, my question is, "How do I get a nice, complete .png image from that website, even though they are using a zoom window?"
Any help would be very appreciated.
The most detailed images have the URL like this:
http://digitalcollections.tcd.ie/content/14/pages/MS58_001r/image_files/12/0_0.jpg
which goes up to 9_12.
The MS58_001r is MS58_00 followed by the page's "name" which you can extract using:
$(".toc_page_number").each(function (index, element) {
console.log(element.textContent.split(" ")[1]);
});
You can easily create a script in python which generates all the links and downloads them, and using PIL you can stitch them together.

UTFT_SdRaw not loading image properly

I'm trying to load multiple images with the UTFT_SDRaw library. I had some .raw files from the internet and they worked nicely. Now I made an image in png and converted it to Raw with a program called:
"Fiji ImageJ". After converting I moved it to my 4gb 32Fat sdcard. Changed the code a bit and the old images still loaded but my image is like a rainbow dotted square. I assume the file type isn't right although it's .raw. I can't find any specifications on the working images or what so ever and can't find anything on google.
Does someone have a program that can be used to convert my pngs to raw properly?
Or is there something else i did wrong?

exported image from Highcharts has a blank square on up-left corner

I have been working on exporting Highchart to JPEG image. I have downloaded the asp.net code for exporting.
Everything works fine, just the image exported has a blank square on the up-left corn. (sorry, I don't have enough reputation to post an image)
However, the exact same code, but I change the export url to "http://export.highcharts.com/", then export to image, it looks fine.
So I am assuming nothing is wrong with my code? unless I have missed some configurations? Can anybody help thanks.

Resources