Is there a way to find the image id/url of an image, if you only have the url of the deleted album that the image was in? (Imgur unregistered upload) - imgur

I made an upload to imgur.com without an account, and then I deleted the post, but the image inside the post remains.
Is there any way to get the urls/deleteHash of images in previously deleted posts/albums, if I only have the url to the deleted posts/albums, not the urls of the individual images inside those posts/albums?
Example:
Album/post was deleted: https://imgur.com/a/YD7loi6
Image inside the post/album remains: https://imgur.com/k93Zish

Related

where to save images uploaded via POST and how to send that image via GET

My problem seems common but with a variety of use cases, I couldn't find the exact answer
the idea:
user will upload an image from front-end, every upload should create a json entry in database like:
{
id: number,
description: string,
image_url: string //important, this should be the image url
}
where do I save these images such that I can have an image_url so whenever someone puts the url in browser that image is seen
You can save your images in a folder and then serve its files using something like this:
app.use('/images', express.static('images'))
and image links would be like your-domain.com/images/IMAGE_NAME.
you can read more here

Cannot download base64 image from a browser from an aws lambda function?

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}

Upload image for profile user on django framwork

this is my repository github:https://github.com/Andrygaby/mySite_projecte/tree/master/fullProject/user
I'm beginner with django and I want to upload an image for my user profile,and then there are nothing displayed on the page where I pretend to put the image of the user.I pretend to put on profile_user.html and edit_profile.html,

How to attach a base64 png image in the slack bot's response? [duplicate]

I have integrated Slack API using cURL in my project.
I want to send an image as my attachment. It works while sending full image path in image_url. But when I convert that image to base64 string and then pass it with image_url it doesn't go as attachment.
So basically I want to post base64 string as my image attachment. Because I don't want to store the image on my server.
{"attachments":
[
{
"fallback": "Required text summary of the attachment that is shown by clients that understand attachments but choose not to show them.",
"image_url":"",
"text":"",
"color":"#7CD197"
}
]
}
You can not submit a full image as attachments, only URLs to an image.
If you want to upload an image to Slack you can do so by using files.upload. Here is a curl example for uploading a GIF image from the Slack documentation:
curl -F file=#dramacat.gif -F channels=C024BE91L,#general -F token=xxxx-xxxxxxxxx-xxxx https://slack.com/api/files.upload
An alternative is to use an image hoster (e.g. http://imgur.com) to upload and store your image (through their API). Then you can include the image URL in your attachment.
I personally prefer the second option, since its more flexible to include image URLs in messages and images then do not reduce your precious storage space on Slack.

How can I send an error image if the image can't be found in cloudinary (default image?)

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.

Resources