save-image

GIMP Python-fu exporting file only exports transparent layer

浪尽此生 提交于 2019-12-04 11:21:45
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, I cannot get it to save anything besides the transparent background. The code I am using is posted below: image_array = gimp.image_list() i=0 for image in image_array: img = image_array[i] layers = img.layers last_layer = len(layers)-1 try: disable=pdb.gimp_image_undo_disable(img) pdb.gimp_layer_add_alpha(layers[0]) drw = pdb.gimp_image_active

Numbering of image saved from app resource to SD card

╄→гoц情女王★ 提交于 2019-12-04 05:11:00
问题 I have app consist of days listview each day has its specific images placed in an infinite gallery class , what im trying to do is: saving images with sequential number from app drawable resource ( infinite gallery class) to sd card , im trying to get the sequential number of saved images as below : first image :Image-1.png . second image :Image-2.png . third image : Image-3.png , and so on for all dayes . with using : Random generator = new Random(); This will lead to : first issue : saved

Numbering of image saved from app resource to SD card

只愿长相守 提交于 2019-12-02 05:19:26
I have app consist of days listview each day has its specific images placed in an infinite gallery class , what im trying to do is: saving images with sequential number from app drawable resource ( infinite gallery class) to sd card , im trying to get the sequential number of saved images as below : first image :Image-1.png . second image :Image-2.png . third image : Image-3.png , and so on for all dayes . with using : Random generator = new Random(); This will lead to : first issue : saved images with random numbers . second issue : its not saving all images was choose by user to save to sd

External Exception in GDI+ error saving specific image

▼魔方 西西 提交于 2019-12-01 13:32:17
I needed to grab the images from a database, so I made some code for it. Issue is getting that error in some images and an Invalid Parameter error in others. OleDbConnection l = new OleDbConnection(builder.ConnectionString); List<Image> listaImagens = new List<Image>(); List<String> listaNomes = new List<string>(); string nome = ""; try { OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT * FROM [Fotografias e Manuais de Equipamentos] WHERE ID >26 AND ID < 30", l); DataSet ds = new DataSet(); adapter.Fill(ds, "Fotografias e Manuais de Equipamentos"); //string s = ds.Tables["APP_Equip_Ult

External Exception in GDI+ error saving specific image

笑着哭i 提交于 2019-12-01 11:10:35
问题 I needed to grab the images from a database, so I made some code for it. Issue is getting that error in some images and an Invalid Parameter error in others. OleDbConnection l = new OleDbConnection(builder.ConnectionString); List<Image> listaImagens = new List<Image>(); List<String> listaNomes = new List<string>(); string nome = ""; try { OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT * FROM [Fotografias e Manuais de Equipamentos] WHERE ID >26 AND ID < 30", l); DataSet ds = new

How can i add two uiimageview and save it to iphone photo gallery in iphone application development?

别说谁变了你拦得住时间么 提交于 2019-12-01 11:04:51
I am going straight to the point,my problem is, I have a uiview controller which is taking 3 buttons and a uiimage view.Now, When i am pressing first button i am taking image from iphone default photo gallery and placing on uiimageview. When i am pressing second button it will take another image from photo gallery and placing on previous image. Now when i will press third button those two image will add and make it one image and save in the photo album. i have done step 1 and step 2 but how can i do step 3?? EDIT suppose a man without beard in a picture(image1) but i am adding another beard

how to capture image after face detection in tracking js

女生的网名这么多〃 提交于 2019-12-01 06:49:12
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: <!doctype html> <html> <head> <meta charset="utf-8"> <title>tracking.js - face with camera</title> <script src="../tracking.js-master/build/tracking-min.js" type="text/javascript"></script> <script src="../tracking.js-master/build/data/face-min.js"></script> <link rel="stylesheet" type="text/css" href="face.css"> </head> <body> <div class="demo-frame"> <video id="video" class="face-video" width="740" height="560

how to capture image after face detection in tracking js

空扰寡人 提交于 2019-12-01 04:16:45
问题 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: <!doctype html> <html> <head> <meta charset="utf-8"> <title>tracking.js - face with camera</title> <script src="../tracking.js-master/build/tracking-min.js" type="text/javascript"></script> <script src="../tracking.js-master/build/data/face-min.js"></script> <link rel="stylesheet" type="text/css" href="face.css

UIImage Saving image with file name on the iPhone

南笙酒味 提交于 2019-11-26 22:53:28
How can I save an image (like using UIImageWriteToSavedPhotosAlbum() method) with a filename of my choice to the private/var folder? Kenny, you had the answer! For illustration I always think code is more helpful. //I do this in the didFinishPickingImage:(UIImage *)img method NSData* imageData = UIImageJPEGRepresentation(img, 1.0); //save to the default 100Apple(Camera Roll) folder. [imageData writeToFile:@"/private/var/mobile/Media/DCIM/100APPLE/customImageFilename.jpg" atomically:NO]; UIImageWriteToSavedPhotosAlbum() is only used for saving to the photos camera roll. To save to a custom

UIImage Saving image with file name on the iPhone

a 夏天 提交于 2019-11-26 08:27:49
问题 How can I save an image (like using UIImageWriteToSavedPhotosAlbum() method) with a filename of my choice to the private/var folder? 回答1: Kenny, you had the answer! For illustration I always think code is more helpful. //I do this in the didFinishPickingImage:(UIImage *)img method NSData* imageData = UIImageJPEGRepresentation(img, 1.0); //save to the default 100Apple(Camera Roll) folder. [imageData writeToFile:@"/private/var/mobile/Media/DCIM/100APPLE/customImageFilename.jpg" atomically:NO];