Questions tagged [save-image]
186 questions
111
votes
12 answers
android - save image into gallery
i have an app with a gallery of images and i want that the user can save it into his own gallery.
I've created an option menu with a single voice "save" to allow that but the problem is...how can i save the image into the gallery?
this is my…

Christian Giupponi
- 7,408
- 11
- 68
- 113
104
votes
13 answers
how to save canvas as png image?
I have a canvas element with a drawing in it, and I want to create a button that when clicked on, it will save the image as a png file. So it should open up the save, open, close dialog box...
I do it using this code
var canvas =…

sneaky
- 2,141
- 9
- 31
- 38
21
votes
4 answers
iOS 10 app crashes when trying to save image to photo library
I'm trying to save an image to the photo library in Swift 3 (I'm working with Xcode 8).
ViewController Code:
func shareImage(image: UIImage) {
let items = [image]
var activityVC: UIActivityViewController =…

Charlotte1993
- 589
- 4
- 27
13
votes
3 answers
UIImage Saving image with file name on the iPhone
How can I save an image (like using UIImageWriteToSavedPhotosAlbum() method) with a filename of my choice to the private/var folder?

erastusnjuki
- 1,491
- 3
- 14
- 32
11
votes
1 answer
"Save image as.." not working in Google Chrome when using window.open() and document.write()
In my app I need to allow a user to right-click on an image to save the image to disk. However, I have noticed that with my particular code, Google Chrome is the only browser that doesn't allow the user to "Save image as.." unless the user first…

Jed
- 10,649
- 19
- 81
- 125
9
votes
3 answers
How do I set the default 'save image as' name for an image generated in PHP?
I have a page in my site, displaying some images that are produced my PHP. When I right click on an image and click Save Image As I get as default name the name of the php file used for generating the image.
This is for example the html for the…

novellino
- 1,069
- 4
- 22
- 51
7
votes
2 answers
How to save uploaded images to a MongoDB collection, and retrieve it
I want to save uploaded files such as a user's avatar image to user collection in MongoDB, I guess the steps are:
user upload a image;
use a FileHandler (IHttpHandler, Asp.net) to accept the file stream in web server;
then I get that file binary…

lotus_misser
- 135
- 1
- 1
- 10
6
votes
0 answers
Programmatically save Ipython widget to a file as image
I am just trying to programmatically save displayed widget on my computer. I tried to use capture as well as output. I wish there was method called .savefig()
I have seen this question, Save iPython Jupyter Notebook Widgets to PNG/PDF/JPG/GIF but…

Vijay Aundhekar
- 61
- 1
6
votes
1 answer
How will I save data from javascript's canvas.toDataURL to an image file in ruby?
How will I save data from javascript's canvas.toDataURL to an image file in ruby?
The sample code below create the image but gives an error saying the format is not recognized or damaged
require 'base64'
chart1 = params[:chart1].split(',')
image =…

steamboy
- 1,162
- 5
- 20
- 37
5
votes
2 answers
How to make html div with text over image downloadable/savable for users?
I have a div that takes a user image and places user text over it. My goal is for the users to, after seeing the preview and customizing the image/text to their like, be able to download or save the image with the click of a button. Is this…

Scott Myers
- 226
- 9
- 30
5
votes
1 answer
Value cannot be null. Parameter name: encoder
I need to take a screenshot of part of the screen and check if the screenshot is equal to the image in pictureBox2.
This is the line that doesn't work:
pictureBox1.Image.Save(ms, pictureBox1.Image.RawFormat);
The error is
Value cannot be null.
…

Maiky Ganon
- 51
- 1
- 1
- 2
5
votes
1 answer
GIMP Python-fu exporting file only exports transparent layer
I am having issues saving images in python via GIMP. I can get the image and apply the effects I want, but when I go to save, it only saves one layer and not everything (NOTE: The background is transparent) and because the background is transparent,…

Josh Menzel
- 2,300
- 4
- 22
- 31
5
votes
2 answers
Save Multiple Image In Android
I have a base image view which can load image from sd card. The user can add templates(bitmap images) on to this image view on a button click and can position the added image to user need. I want to save these multiple images as a single image to sd…

Froyo
- 455
- 1
- 8
- 21
4
votes
1 answer
How to download(save) an image from url into our photo album using angularjs?
I am new to angularjs and my project runs on android and IOS platform using angularjs and ionic. I need to save an image into phone photo album(support IOS and Andorid) with the image url. I know cordova plugins can download images from url but I…

jingyo
- 41
- 3
4
votes
1 answer
how to capture image after face detection in tracking js
I am using tracking js for face detection. I successfully detected the face but I don't know how to capture image frame.I want to save the detected face as image. This is my HTML page:
…

Jai Prak
- 2,855
- 4
- 29
- 37