Leaflet display tif images - leaflet

I am creating a webGIS and I want to display TIF images. I try to follow the instalation of georaster-layer-for-leaflet library, however when I try to open an image, two errors happened:
"Failed to load resource: the server responded with a status of 404 (File not found)" and in this case it assumes the tif image with the extension tif.ovr (I do not understand why)
and
"Uncaught (in promise) TypeError: Failed to execute 'fetch' on 'WorkerGlobalScope': Failed to parse URL from img/20170831_172754_101c_3b_Visual.tif"
Can anyone help me please?

Related

Github invalid file error in uploading google colab file

I'm trying to upload a Google Colab notebook to GitHub, but I keep getting the error:
Invalid notebook
missing attachment.
I went back and deleted the line for that png but still after resaving the notebook and trying to upload it again it says the same thing just for another png.
Is there a way to fix this without deleting every png in my notebook?
Check first, as in here, if you have a a link to an invalid png in another markdown cell.
In other words, the png might not be the issue (no need to delete it).
But an invalid reference to a png with the same name might trigger the error.

App launcher icon issue while building the app

> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
> Android resource compilation failed
ERROR:AAPT: C:\Users\Prejith T S\Documents\projects\ATTENDANCE\TASKT7\wtiattendance\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.
C:\Users\Prejith T S\Documents\projects\ATTENDANCE\TASKT7\wtiattendance\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: error: file failed to compile.
i want to build an apk for my client but now it is not possible
It's likely a JPG renamed to a PNG file, not an actual PNG file
The problem could be because of the wrong extension of images.
The file was a JPE image but it was saved as PNG not converted to. In this situation change extension to the real one and convert to PNG then retry.
For instance, you have ic_launcher.png but it's actually a JPG image.
You should rename it back to ic_launcher.jpg and use something like Photoshop, or online convert tools to convert the image to PNG format.

Intel XDK Image Upload

I'm trying to upload an image on Intel XDK
intel.xdk.file.uploadToServer(pictureURL,"http://www.myserver.com/uploadImage.php", "", "image/jpeg",
but the image doesn't seem to upload to the server even though i get a success from the callback, anyone have an idea what could be wrong?
there are many ways to upload file to server. at all this is a 2way action.
maybe file has been uploaded but an error has occurred in server. you can use fail callback and got the error.
, function (error) { alert(JSON.stringify(error)); });
or maybe an undefined value cause error andbreaks the next line.
using ajax calls, httpRequest are standard ways which has many references

php - php Thumb file not writeable

i'm using ffmpeg for extracting a video frame from which i want to create a thumbnail using php thumb.
creating the video frame works, but when trying to save the thumbnail file (under a different name - same directory) i'm getting this error:
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'File is not writeable, and could not correct permissions: d:/Webs/bla.jpg' in D:\Webs\phpThumb\lib\GdThumb.inc.php:656
it can't be a permission problem as i can already store the videoframe into the same folder.
any ideas what could be wrong?
I had the same issue. I solved it with saving the file with document_root:
$phpthumb->adaptiveResize(100, 100)->save($_SERVER["DOCUMENT_ROOT"].'/public/uploads/thumbs/filename.jpg');
Found the answer in this question: https://stackoverflow.com/a/17684098/317326

UIWebView "Unable to read document" error

I am trying to open Word and Excel 2003 docs using loadRequest and I am getting this error
(in simulator).
Unable to Read Document.
An error occurred while reading the document.
According to this link,
http://developer.apple.com/library/ios/#qa/qa2008/qa1630.html
UIWebView should display doc and xls types.
Any ideas?
Are there any other recommended xls, doc viewers out there?
Thanks.
The reason i found int these case was due to password protected or encrypted file,or any file format which webview can load.
UIWebView has these EXCEPTION SFUZipEndOfCentralDirectoryError: Could not find the end of central directory record when it encounter with above reason.
You can load document like this