Skip to main content
Filter by
Sorted by
Tagged with
4 votes
1 answer
265 views

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 ...
Xitog's user avatar
  • 161
0 votes
0 answers
29 views

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 ...
spainchaud's user avatar
Tooling
0 votes
6 replies
90 views

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 ...
NickTaylor98's user avatar
0 votes
0 answers
43 views

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 ...
vegaelce's user avatar
  • 153
3 votes
2 answers
129 views

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 ...
RayX500's user avatar
  • 319
1 vote
1 answer
79 views

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, ...
Yuli's user avatar
  • 13
0 votes
1 answer
69 views

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(...
Tom Beesley's user avatar
0 votes
2 answers
205 views

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-...
Paul Hill's user avatar
  • 125
2 votes
1 answer
139 views

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 ...
prince royce's user avatar
1 vote
1 answer
70 views

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 ...
grsousajunior's user avatar
0 votes
0 answers
80 views

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 ...
Frederick Pua's user avatar
0 votes
2 answers
156 views

Consider the following MWE: <html><body> <img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAEAAQAACAYAAAAY4xeyAAAFBUlEQVR4nO3TsQ0DAQwDMSX77+...
kostrykin's user avatar
  • 4,334
2 votes
1 answer
180 views

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 ...
KEVIVI's user avatar
  • 186
1 vote
1 answer
109 views

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(). ...
mechanical-girl's user avatar
0 votes
1 answer
52 views

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(...
G. Cuthbert's user avatar
-1 votes
1 answer
57 views

When converting a PSD to a PNG, the black border shadow disappears using ImageMagick Original Image: After converting losing black border shadow using imageMagick: When converting a PSD to a PNG, the ...
Rams's user avatar
  • 59
1 vote
2 answers
156 views

I've got an dynamic HTML page that contains a QR code that is generated dynamically and embedded using <img src=data:image/png:....>. I had been testing the page by generating it with specific ...
Frank Yellin's user avatar
  • 11.7k
1 vote
2 answers
228 views

I would like to export a terra plot to png and I need the exported figure to be almost perfectly clipped around the raster that is being plotted and the related legend. However, if I run a default ...
Laura Roich's user avatar
1 vote
0 answers
53 views

I'm trying to make a panel in a plot that shows the R squared value of the correlation in another panel. When I create the plot, it shows up fine in RStudio, but when I save to PNG, the colon symbol ...
Janne B's user avatar
  • 23
0 votes
1 answer
45 views

Aside from the image not being properly represented in something like an image editor, if my goal is to simply compress the pixels, and then retrieve them by decoding and reading them as I wrote them, ...
Zebrafish's user avatar
  • 16.9k
1 vote
0 answers
97 views

I'm building an C# console-app that modifies image metadata (title, comments, tags) with AI-generated text to improve searchability in file folders. However, I recently ran into a problem. Is it not ...
SebastianK's user avatar
0 votes
1 answer
171 views

I am trying to export my plotly graph object to a png in my Streamlit app, I am running my Streamlit app locally using: python -m streamlit run Streamlit_Mapping.py The code I am referring to looks ...
user29633435's user avatar
1 vote
1 answer
44 views

I'm using Robot.js to take screenshots (I don't really want to install any other heavy packages over 1 mb, but I'm already using Robot.js and no, Jimp isn't what I'm looking for). Since the ...
Dinoscape Dinoscape's user avatar
0 votes
1 answer
106 views

I’ve created a chart using pygwalker in a Jupyter Notebook: ... visuals = pyg.walk(df, spec='pygwalker_spec_123456789.json') visuals.chart_list Output: ['Chart 1'] What I would like to do is save ...
chaed's user avatar
  • 127
0 votes
1 answer
89 views

For learning purposes I try to implement PNG/zlib/DEFLATE decoding. From scratch, according to original specs. At this moment I'm stuck at decoding this 2x2 image: <- its here. Specifically, at ...
hopeless-programmer's user avatar
0 votes
1 answer
192 views

I will be processing hundreds of postscript files and converting them into PNG files with Ghostscript, so I am trying to find a way to batch process them in one command. When doing this manually I ...
Amy H's user avatar
  • 21
1 vote
1 answer
167 views

My goal is to obtain a PNG file with a transparent background from a PDF file. The convert tool can do the job: $ convert test.pdf test.png $ file test.png test.png: PNG image data, 595 x 842, 8-bit ...
sevan's user avatar
  • 3,984
0 votes
1 answer
65 views

The following code takes a linechart view, turns into an PNG image and saves it on the phone. However, I want to adjust vertical or Top location of the linechart on the canvas. No matter what I try, ...
ThN's user avatar
  • 3,294
0 votes
0 answers
141 views

I have an image (stored as a PNG) that has some transparent areas that I'm loading into a System.Drawing.Bitmap. I've confirmed image.PixelFormat is Format32bppArgb and that the image does indeed ...
Betty Crokker's user avatar
-1 votes
1 answer
199 views

I have url of HLS: https://9str-m3u8-play-021024.playm4u.xyz/m3u8/tp1-rdv1/1080/642bce856edd7cab511931a2/647af249adaf446b461a374e/53616c7465645f5f3ec139a78aff102a8e3a3c62ae8f3826f32bf6f19ea4b1fb/...
Maxim's user avatar
  • 584
0 votes
1 answer
55 views

There are tons of answers here in SO and elsewhere on the web about how to resize an image using PHP when the image is on disk. However, these do not work if the image is held in a variable. I believe ...
user6631314's user avatar
  • 2,050
0 votes
0 answers
103 views

I am reading a PNG file from a website: String zoom = "5"; // Test Values String xmap = "30"; // Need to be adjusted String ymap = "30"; String ...
Jason Trumbower's user avatar
3 votes
2 answers
257 views

Why aren't these images crispy on site (online)? Why are they zoomed in? Online: These also should look crispy, but they are zoomed in: Here's the comparison: On the right side of this screenshot, ...
iorgu's user avatar
  • 2,997
1 vote
0 answers
79 views

I am using the biosurvey package trying to run a function (biosurvey::explore_data_EG) that plots 4 panels, which specifically for me are 2 large map rasters at 1km resolution for Canada, 1 biplot ...
Francis van Oordt's user avatar
2 votes
0 answers
1k views

When I try to open .png file or any python file that has text in it, I get: Error loading webview: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The ...
marina05's user avatar
0 votes
1 answer
197 views

My goal is to write a png image from a starting bitmap image. I know the existence of many libraries, but I need to write it from scratch. The first function I have implemented is "...
Jonny_92's user avatar
  • 153
1 vote
3 answers
195 views

I'm working on an API that, in a specific step, will generate a barcode from a Guid and save said barcode as a PNG image to my local machine. I'm using the barcodelib library to try and accomplish ...
Alex Helm's user avatar
0 votes
1 answer
106 views

I have successfully changed the output from default terminal screen to a *.png by for example. [load(implicit_plot), gnuplot_out_file[png,"gnu.png"], implicit_plot(x^2+y^2-1,[x,-1,1],[y,...
user158293's user avatar
4 votes
2 answers
239 views

I'm creating several plots in R with differing aspect ratios that are intended for use in Latex later. I have plots similar to this: library(ggplot2) library(sf) map <- st_sf(geometry = st_sfc(...
SusannaB's user avatar
1 vote
1 answer
78 views

I know how to save a plot as a pdf to disk ... pdf(file = "sample.pdf") plot(x=1:2,y=1:2) dev.off() But, instead of sample.pdf could I make the pdf an object in the global environment? I ...
Mark R's user avatar
  • 1,063
0 votes
1 answer
110 views

I'm generating a graph png file from this input architecture.graph.txt: digraph GG { node [ fontsize="12"]; compound=true; subgraph cluster_general_purpose_utilities { label="...
jpo38's user avatar
  • 21.9k
0 votes
2 answers
135 views

TLDR: My goal is simple. I have a PNG file. I want to draw a rectangle in it using Python and save it to a new file. I have a PNG file (attached to this post). All I want to do is draw a rectangle in ...
tscheingeld's user avatar
1 vote
2 answers
261 views

Icons in .dll or .exe files are stored in the resources segment as Windows DIBs or PNGs since Windows Vista. What function/library is used by the CreateIconFromResourceEx() WinAPI function in the ...
George Robinson's user avatar
0 votes
1 answer
91 views

I am trying to read PNG data with libpng, but I am not able to figure out the last step. I am trying to read png pixel data. Here is what I came up with #include <png.h> #include <pngconf.h&...
Cxyeinx's user avatar
2 votes
0 answers
97 views

My Lambda function uses the Python Image Library (PIL) to convert images, specifically converting everything to PNG. Recently, I've run into a few cases where the colors of the image noticeably change ...
Alex Oat's user avatar
  • 121
0 votes
1 answer
67 views

I'm trying to parse a png file but I seem to be missing something. My test image was the following: https://www.w3.org/Graphics/PNG/alphatest.png When parsing the file my BTYPE value (https://www.ietf....
Dennis Eichhorn's user avatar
1 vote
2 answers
357 views

I'm trying to write a .bat file that will extract all .cbz archive files in current directory convert all jpgs in the resulting directories into pngs with a max width/height of 750/560, by using an ...
Esn024's user avatar
  • 228
2 votes
1 answer
116 views

I am trying to extract the size of an PNG image from a datastream Consider the starting data of the stream 137 80 78 71 13 10 26 10 0 0 0 13 73 72 68 82 0 0 2 84 0 0 3 74 8 2 0 0 0 195 81 71 33 0 0 0 ....
cards's user avatar
  • 5,237
1 vote
1 answer
189 views

I was directed to an existing answer here: https://stackoverflow.com/a/60222653/2287576 But I am struggling to follow that code. This is what I have: CPngImage png; png.Load(IDB_PNG_MENU_REPORT, ...
Andrew Truckle's user avatar
0 votes
0 answers
152 views

I installed Windows 11 and Visual Studio 2019 Professional to build our application, but the build always fails with a "Generic GDI+ error" when compiling the resources. If I remove the PNG ...
James Huntington's user avatar

1
2 3 4 5
136