png Questions
7
Solved
2
I have a C#/.NET utility I wrote that loads PNG images from disk
Bitmap b = Bitmap.FromStream(new MemoryStream(File.ReadAllBytes(filename))) as Bitmap;
performs several transformations on them (...
Prochronism asked 10/10, 2013 at 17:2
11
Solved
I have a full screen PNG I want to display on splash. Only one error there, and I have no idea
what size to put in every drawable folder (ldpi, mdpi, hdpi, and xhdpi). My application is supposed to...
Lawerencelawes asked 13/5, 2012 at 18:55
3
Solved
I have a binary image in Python and I want to save it in my pc.
I need it to be a 1 bit deep png image once stored in my computer.
How can I do that? I tried with both PIL and cv2 but I'm not able ...
Subtle asked 10/5, 2018 at 7:50
3
Solved
I am plotting a pie chart making background in the png image looks transparent. How can I make the center circle also looks transparent instead of the white color?
import matplotlib.pyplot as plt...
Yawata asked 19/8, 2017 at 12:22
4
Solved
I would like to convert a PNG32 image (with transparency) to PNG8 with Python Image Library.
So far I have succeeded converting to PNG8 with a solid background.
Below is what I am doing:
from PIL...
Holbrooke asked 24/5, 2011 at 17:39
5
Solved
Here is an image:
This image is a simple black-to-transparent gradient saved in full RGBA PNG.
Here is the same image, converted to indexed-alpha PNG by GIMP (Photoshop produces the same result...
2
Solved
I am doing image processing in a scientific context. Whenever I need to save an image to the hard drive, I want to be able to reopen it at a later time and get exactly the data that I had before sa...
Waxwork asked 19/12, 2017 at 10:33
2
Solved
I am trying to export a simple plot in .png with transparent background. I am able to export it, but the background stays white.
Mock example
x = c(1, 2, 3)
I've tried this
plot (x)
dev.copy ...
3
Solved
2
Solved
I want to convert my png file to xml resource that can be accepteed by android.
I converted it by using the website below.
https://convertio.co/fr/png-svg/
Then I downloaded it then put it...
2
Solved
Context
I used a C++ program to write raw bytes to a file (image.raw) in RGB32 format:
R G B A R G B A R G B A ...
and I want to be able to view it in some way. I have the dimensions of the imag...
Silda asked 19/9, 2017 at 22:6
7
Solved
Calling
image = Image.open(data)
image.thumbnail((36,36), Image.NEAREST)
will maintain the aspect ratio. But I need to end up displaying the image like this:
<img src="/media/image.png" styl...
Edris asked 6/9, 2009 at 18:33
1
I have a sequence of png images: image_00.png, image_01.png, image_02.png, etc. I want to convert them to a gif, so I tried the command
ffmpeg -i image_%02d.png video.gif
Unfortunately, the resu...
6
Solved
I'm streaming a png image from my iPhone to my MacBook over tcp. The MacBook code is from http://docs.python.org/library/socketserver.html#requesthandler-objects. How can the image be converted for...
3
Solved
I have an Image: PNG image data, 403 x 343, 8-bit colormap, non-interlaced. I want to convert this into Google Play Icon size: 32-bit with alpha.
How can I do it?
Cressy asked 6/4, 2016 at 21:16
3
I'm using a crop & resize function for images, but I need to let it crop/resize ONLY png files WITH transparent backgrounds, at least 1 pixel in the image should be transparent for the image to...
Moonshot asked 11/1, 2012 at 13:6
1
Solved
I would like to open a PNG image in Python, add some custom data to it, save the image file and at a later time open it again to retrieve the data. I am working in Python 3.7. I would prefer to use...
4
So i found this link regarding my question, but it is for c#
Create a PNG from an array of bytes
I have a variable int array of numbers.
i will call it "pix[ ]"
for now it can be any size from 3 ...
3
I'm developing an application with Tkinter that uses a database of png image files for icons. In order to use said images in the application, I open them using PIL's Image.open, run it through the ...
Blalock asked 17/6, 2012 at 4:13
4
This is what I have so far:
<?php
$file = "18201010338AM16390621000846.png";
$test = file_get_contents($file, FILE_BINARY);
echo str_replace("\n","<br>",$test);
?>
The output is...
5
I'm trying to write a PHP script that resizes a PNG image and then converts it to PNG-8 bit mode. So the size of the resulting file will be smaller but without too much quality loss.
The resize wor...
Cytolysin asked 18/9, 2019 at 11:53
2
Solved
With Python Bokeh export_png function, we can export an object to png file. However, I cannot find any way to specify the resulted png file size / resolution.
I found that I used the same code an...
3
Solved
Been working in Java with images from the web encoded as base64 strings. I have only seen image/png format in img src tags i.e. data:image/png;base64,{eNc0d3d_St!ng...} I have not seen image/gif or...
Eldreeda asked 25/9, 2015 at 21:43
1
I use Shap library to visualize variable importance.
I try to save shap_summary_plot as 'png' image but my image.png but them get an empty image
this is the code that I have used:
shap_values = ...
Camarilla asked 17/9, 2019 at 14:50
© 2022 - 2024 — McMap. All rights reserved.