png Questions
10
Solved
I'm trying to save a UIImage to NSData and then read the NSData back to a new UIImage in Swift. To convert the UIImage to NSData I'm using the following code:
let imageData: NSData = UIImagePNGRe...
4
Solved
Problem:
I want to make a multi-panel figure using PNG or JPEG images. The images were not created in R but I want to patch them together in R to form one figure. All the images are the same size/d...
2
I have a website that displays images submitted by users. I am concerned about
some wiseguy uploading an image which may exploit some 0-day vulnerability in a
browser rendering engine. Moreover, I ...
8
Solved
I'm having an issue with attempting to save some plots with transparent ellipsoids on them if I attempt to save them with .ps/.eps extensions.
Here's the plot saved as a .png:
If I choose to sa...
Sibelius asked 28/10, 2013 at 15:27
4
Solved
I remember from 3 years ago that it was an absolutely huge pain to use any nice PNG with alpha in websites, because of IE6 and other bad browsers.
But how about now? How about if your target audie...
3
Solved
I used Microsoft Paint to create a 15248 x 6552 solid color picture. I saved it as both .png and .jpg and was expecting the .jpg to be smaller than .png, but it was not.
The .jpg file is 1.49MB, wh...
Deadwood asked 15/5, 2017 at 1:59
3
I am encoding my images in Base64 before uploading them to the server. I need to get their file sizes down to a specific size (500kB). I have tried to get the ratio between the original and the des...
Marcelline asked 7/2, 2017 at 14:41
4
Solved
I have a file called nochart.png in /drawable.
How can I set this to an ImageView?
chartImageView.setImageDrawable(R.drawable.nochart);
Does not compile.
8
Solved
I have a canvas which is loaded with a png image. I get its jpg base64 string by .toDataURL() method like this:
$('#base64str').val(canvas.toDataURL("image/jpeg"));
But the transparent parts of...
Allocate asked 22/8, 2015 at 19:42
2
Solved
I am trying to convert images to grayscale using Python/Pillow. I had no difficulty in most images, but then, while testing with different images, I found this logo from the BeeWare project, that I...
Prosser asked 20/7, 2018 at 15:7
1
Solved
My goal is to read a PNG file, change the pixel values and store the updated PNG file using libpng.
I wrote two functions called read_png and write_png by following the official libpng manual. The ...
9
Solved
One advantage of PNG is full alpha transparency, which allows you to have smooth edges and shadows in in web designs. The main disadvantage is that it only supports lossless compression, which for ...
Onder asked 31/3, 2009 at 16:6
5
Solved
I'm trying to get a screenshot output as a base64 encoded string but not getting very far. The code I have so far uses a Base64 library ( http://iharder.sourceforge.net/current/java/base64/ ):
Ro...
Ind asked 24/8, 2011 at 16:25
1
Solved
I'm trying to insert a png image in matplotlib figure (ref)
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.figure import Figure
from matplotlib.offsetbox import OffsetImage, An...
Ticklish asked 21/12, 2020 at 4:20
2
I have a bunch of png files named as 1.png, 2.png, etc. and I want to create an animated gif image from them all. I haven't been successful in finding a solution for a terminal command that will co...
5
Solved
4
i search a solution to convert a PNG or JPEG Image to a SVG Vectordrawing. I found a lot "Convert SVG to PNG" but nothing about converting a PNG to a SVG. Can someone help me pls?
Tacy asked 29/3, 2018 at 4:34
1
Solved
I have a .gif file on my file system and I want all of its frames to be saved as .png files. How can I do this with ffmpeg?
4
I'm trying to blit a PNG image onto a surface, but the transparent part of the image turns black for some reason, here's the simple code:
screen = pygame.display.set_mode((800, 600), pygame.DOUBLE...
3
Solved
I tried to convert a 32-bit Bitmap to 32-bit PNG using PIL.
from PIL import Image
im = Image.open('example.bmp')
print im.mode
# it prints 'RGB', but expected was 'RGBA'
im.save('output.png', form...
Trustworthy asked 4/5, 2012 at 17:39
0
I'd like to support APNG files, but with hover to animate functionality on some pages so it's not too overwhelming.
I'd rather not have to store both an animated and still version of the user profi...
Bunt asked 5/9, 2020 at 14:33
3
I need to split a webm encoded video into png frames, without losing transparency. I use the following ffmpeg command:
ffmpeg -i dancer1.webm -pix_fmt rgba frames/%04d.png
This produces a direct...
Stoffel asked 18/3, 2014 at 16:15
2
Solved
I'm currently working on a ggplot column chart and I'm trying to add a logo to the bottom right. This is the code to the chart:
df <- data.frame(Names = c("2001", "2004", &qu...
Christos asked 16/8, 2020 at 23:43
4
Is there way to convert a png file into SVG file using only pure python or a python module such as wand?
To be more precise, I want to convert a png into a real vector graphics, I don't want to em...
Vickyvico asked 15/7, 2015 at 10:28
7
Solved
I am using this class:
class ImgResizer {
function ImgResizer($originalFile = '$newName') {
$this -> originalFile = $originalFile;
}
function resize($newWidth, $targetFile) {
if (empty($newW...
© 2022 - 2024 — McMap. All rights reserved.