Working on this repo for an NPM module
the image shows up on Github (scroll down)
https://github.com/ORESoftware/suman
but on NPM, despite an HTTP 200 to retrieve the image from Github, it doesn't show up
https://www.npmjs.com/package/suman
this is all Markdown, and the markdown for the image is:
![alt text](https://github.com/ORESoftware/suman/blob/master/images/suman.png "Suman Primary Logo")
Anyone know why this markdown image tag doesn't work on NPM?
use this url (https://raw.githubusercontent.com/ORESoftware/suman/master/images/suman.png)
Your url link to a page not a image
This is because the url
https://github.com/mvsowndapan/react-dnd-crop/blob/master/asset/icons/labelIcon.png
requesting to the github page that contains the image, not the image itself.
To get the image just add ?raw=true at the end of the url
https://github.com/mvsowndapan/react-dnd-crop/blob/master/asset/icons/labelIcon.png?raw=true
like this. It works fine
Related
I create a node js lambda function to crop and return an image from any image url.
The function creates a GET API which returns a cropped image.The API is working fine, I am able to download any image from postman but even there I am not getting the image preview, I have to manually download. Although the downloaded base64 image is correct and working in the browser if put directly.
I need a way for it to work directly in the html <img> tag.
The api is something like - https://aws-lambda-fn-image-resizer/{encoded image url}
I want to send an image that might say something like "Image coming soon".
In gridFS I can find out if an image exists and if it exist send the image if not I could tell it to send an error image.
Is there a place in cloudinary that has a sort of default image to send if it can't find the image requested like via the img src tag.
I would like something better than a broken image.
I use nodejs
When generating the image src URL with Cloudinary Node.js SDK, you can specify the default_image parameter:
cloudinary.image("non_existing_id.png", {default_image: "avatar.png"})
Or directly in the URL:
http://res.cloudinary.com/demo/image/upload/d_avatar.png/non_existing_id.png
You can read more about this here.
Recently ,I meet a problem ,that deploy pmwiki on our iis server,all things goes well.However,the problem occured,that ,our pmwiki has six group ,as we all know that,wiki must allow people to edit it content,the directory is like this:
![enter image description here][1]
the problem is that,I can change the defualt page ,howerver,can not edit the Group1~Group6 folder.
the iis setting is like this:
IE browser :http://your.domain/Group2/?n=Main.HomePage?action=edit
then the browse occured error:HTTP ERROR 405 POST DID NOT ALLOWED
how can I solve this problem ?
![enter image description here][2]
when i want to change the content of everygroup ,for example:
After F12 chrome debug, I found that it did not support HTTP POST method!
Using this code:
<iframe height="780" src="http://docs.google.com/viewer?url=http://ruh.kz/sites/default/files/doc/ritorika.pdf&embedded=true" style="border: none;" width="600"></iframe>
But all the time im getting this annoying message:
Sorry, we are unable to retrieve the document for viewing or you don't have permission to view the document.
By the way, i have read about ISP might block google docs. But i've checked another sites with google docs viewer and they seemed to work perfectly.
to embed your pdf without putting it in your server , just login to your gmail and upload it in google docs then copy the link and put it in your iframe's src
first you try with online version to view your file if it shows your file,you gave wrong url to iframe,if viewer does not show your file at embedded version and online version check your file size,file url and file permissions to viewer can reach your document.You can try your url, for example http://www.foo.com/bar.pdf paste in your browser,if url is right browser shows the file...
How can I load an image to a UIImage object from the url of the image? Currently, I am loading the image using UIImage.FromFile, and including the image as content, but I need to be able to grab it from another website.
image.Image = UIImage.FromFile("images/imageName.jpg");
Take a look at the blog post Displaying web images with MonoTouch - UIWebImageView.