6,777 questions
4
votes
1
answer
281
views
Producing a PNG with MiniZ
Inspired by the Wikipedia page on PNG, I am trying to produce my own little function for writing PNG.
I don't want to redo libPNG or spng, I just want a simple function for writing a PNG file, taking ...
0
votes
0
answers
30
views
Oxyplot png exporter causing application to hang when saving many plotmodels
I have an application that can produce and export potentially hundreds of PNG files from OxyPlot plotmodels. Usually, I am saving less than 100 PNGs. I one case I needed to save 264 PNGs and the ...
Tooling
0
votes
6
replies
91
views
Vectorization PNG image with precise color number
I have a task to convert user PNG image to SVG with maximum possible color number coming from user setting (e.g. 8). It means that i should make initially image created from 8 colors and then convert ...
0
votes
0
answers
43
views
Using image background sticked to a map in Highcharts
I use Highcahrts to display data on specific geojson maps. Sometimes, the maps are not "geographical" but represent a plan (plant, boat...). I want to be able to add a PNG image on the ...
3
votes
2
answers
131
views
How to generate scatter plot of all numeric columns against specific columns in the same dataframe
I have a dataframe with a mix of data types (object and numeric). I want to plot a scatter plot for all numeric columns in the dataset against specific columns: col_32, col_69,col_74 and col_80 ...
1
vote
1
answer
82
views
When Altair saves plot with save, it loses some configuration parameters
I made a heatmap with Altair with wide borders between the cells, in Jupyter notebook.
When I print it in notebook it looks like it is supposed to - with wide borders,
However when I save it as png, ...
0
votes
1
answer
73
views
Adding transparency layer to image png::readPNG grDevices::rgb [closed]
I'm using the following code to add an image to a ggplot object and set the alpha (transparency) to 0.5
add_BGimg <- function(bg_image_in, res, ggplot_in){
im <- png::readPNG(...
0
votes
2
answers
222
views
png vs. webp : Which resources do I need which can I delete?
I was trying to build a new app on Android and got a whole bunch of errors like the following:
[mipmap-hdpi-v4/ic_launcher] C:\code\mmm\android\app\src\main\res\mipmap-hdpi\ic_launcher.png
[mipmap-...
2
votes
1
answer
147
views
Zlib Inflate Error (-5)(Z_BUF_ERROR) While Loading PNG – avail_in = 0 Unexpectedly [closed]
I'm working on a school project and I'm trying to load PNG files without using additional libraries (so no libpng, just zlib and my own parsing). Everything works fine with most PNGs, except for one ...
1
vote
1
answer
70
views
Transparency and inverted colorbox produce inconsistent colors on gnuplot
I'm encountering a strange issue in gnuplot when combining transparency with an inverted colorbox.
The colors shown in the colorbox do not match the colors actually used in the plot. Additionally, in ...
0
votes
0
answers
82
views
Why is the embedded image extracted from pypdf of lower resolution than when i used pdf2image to conver the entire pdf page?
I have a pdf document which I want to extract embedded images to be used.
I used the code below which to extract the embedded images from the first page of the pdf document:
from pypdf import ...
0
votes
2
answers
160
views
base64 encoded image not showing in Firefox, but works in Safari
Consider the following MWE:
<html><body>
<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAEAAQAACAYAAAAY4xeyAAAFBUlEQVR4nO3TsQ0DAQwDMSX77+...
2
votes
1
answer
186
views
How do I use the python support in DigitalMicrograph to save a color image as PNG file
I can use the python functionality to save a DM image into PNG, as long as it is NOT RGB data type. Here is the code for doing so:
import tkinter as tk
from tkinter import filedialog
from skimage ...
1
vote
1
answer
109
views
In Python Wand, how can I take the convex_hull() of an image only if it has a transparent background?
I am trying to pack images. For PNGs, a transparent background can be neglected - I can take the boundary of the image as a polygon defined from the output of a call to wand.image.convex_hull().
...
0
votes
1
answer
55
views
nginx with createObjectURL and binary png data appears to serve the file as text with utf8 encoding
We have some swagger-ui.js code generating a download link to a png image delivered from a REST API call. The download link is generated by the swagger-ui.js code:
var binaryData = [];
binaryData.push(...