4,945 questions
Score of 4
1 answer
332 views
Loading three.js texture from UInt8Array in plugin
I'm trying to implement a three.js texture loader for the JPEG 360 format. For this purpose, it's really a JPEG image embedded in a nested set of "boxes", very similar to the structures used ...
Score of 2
1 answer
80 views
How can I save an image after altering its color?
I have a small Python code to read and save an image:
import numpy as np
# from scipy.misc import imread, imsave # Not working
from imread import imread, imsave
img = imread('tst-image.jpg')
# print(...
Advice
0
votes
1
replies
75
views
Add text into JPEG with minimal general loss
I am using fswebcam. It is able to write both raw frame as well as processed frame. It is a great tool able putting text (e.g. timestamps) onto the image, but I am facing quality issues, actually not ...
Score of 3
1 answer
86 views
Rgb565 to rgb888 error in the Nicla Vision
I'm running into a problem converting raw rgb565 into rgb888. I'm getting psychedelic looking images:
I followed the advice from this forum post, but I have not been able to fix the problem. Has ...
Score of 0
1 answer
123 views
How do I display image from jpeg in Android using Kotlin [duplicate]
I've tried using ImageView but it requires that the image be a drawable-resource, as per all the answers I could find in SO (and elsewhere).
Do I really have to copy the jpeg to res/drawable? Or is ...
Score of 1
0 answers
156 views
How to Compress TIF with JPEG compression?
I'm trying to accomplish the following:
Open a TIF image file (which contains an alpha channel and Geo Location data)
remove the Alpha channel
Save a compressed version of the TIF file using JPEG ...
Score of 1
0 answers
88 views
JPEG XL multiple resolution in a JUMBF box
I am not sure if I have understood correctly this sentence, taken from ISO/IEC 18181-2:2024
Any boxes, content and codestreams present in a superbox, such as another JPEG XL file in a JUMBF superbox,
...
Score of 1
1 answer
118 views
How can I write in sequence Exif Data to an image in C#?
I am trying to write Exif data to an image in C# but can't find a solution that meets all my needs. Once I have written the data to the image I use ExifTool to test for any errors and consistently I ...
Score of 0
1 answer
122 views
VBA macro or other way to export one or multiple OLE objects in Excel powerpoint to JPG
I have linked macro-enabled worksheet objects from excel to 25 different powerpoint slides in my powerpoint deck. Some slides have up to three linked objects and others have only one. For the slides ...
Score of 1
3 answers
605 views
Spring Boot: Visualize image on Postman
I have this endpoint:
@GetMapping("/thumbnail/{imageName}")
@PreAuthorize("hasRole('BASIC')")
public ResponseEntity<InputStreamResource> natalChartThumbnail() throws ...
Score of 0
2 answers
199 views
Extract UUencoded images from SEC EDGAR submissions
I am trying to automate the extraction of various files from SEC full text submissions on EDGAR (public company regulatory filings). With python, I can separate the various files, demarcated by ...
Score of 0
1 answer
36 views
Trying to Move images in PL/SQL
I'm trying to write a PL/SQL program to COPY a JPG files from one directory to another.
The file names themselves are the id's in a table that I fetch and make a variable
photo_file_name := lower(...
Score of 0
0 answers
124 views
Imagick "Unable to set image alpha channel" error when turning PDF into JPG
First of all, this all involves older versions of both PHP and Imagick, that we cannot update at the moment due to technical constraints.
In our project we preview PDF contents to users by splitting ...
Score of 1
1 answer
222 views
Why geom_text in ggplot2 is not showing the real minus symbol "u2212"? [duplicate]
Why is the Unicode minus sign (\u2212) not displayed in the ggplot2 plot, while the regular hyphen ("-") is shown correctly?
data <- data.frame(a = 1:10, b = 1:10)
ggplot(data, aes(x = a,...
Score of 0
0 answers
312 views
how to convert jpg to pdf using ghostscript in Delphi
I have read and test many things in internet about this issue with no solution. I want to convert a jpeg to pdf file usin ghostscript dll in Delphi 7.
the code below creates an empty pdf file.
...
Score of 1
1 answer
129 views
Getting KeyError when Python iterates through Excel named ranges
I have a Python script which iterates through a set of Excel named ranges (DT_1, DT_2, ... DT_30). All ranges are in the same workbook, same sheet and are all named systematically. The script saves ...
Score of 0
0 answers
121 views
Issue with including a JPEG-data-structure into to PDF-code as an XObject
In a java program, I want to insert at coding level a JPEG image (which already exists in the java-code/program as a BufferedImage) into a PDF-file.
Since the PDF-viewer (XChange-Editor) does not show ...
Score of -1
1 answer
158 views
Frames took with ELP camera has unknown pixel format at FHD?
I'm trying to take a one frame ever x seconds from my usb camera. Name of the camera is: ELP-USBFHD06H-SFV(5-50).
Code is not 100% done yet, but I'm using it this way right now ↓ (shot fn is called ...
Score of 0
1 answer
166 views
Is there a GPU function to convert 8-bit JPEG to 32-bit JPEG?
I want to convert an 8-bit grayscale JPEG to a 32-bit argb JPEG using a GPU function, while not using CPU resources.
Below is my SharpDX code which is 8-bit JPEG to 32-bit JPEG convert using a CPU ...
Score of 1
1 answer
82 views
Can you save a pdf/jpg/png as an object and arrange in a single plot?
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 ...
Score of 2
0 answers
35 views
issue with python script to reduce jpm images
I'm on windows 11, using a Python script to compress JPG images recursively in a folder and its subfolders. The script uses the Pillow library and is designed to reduce image quality by 70% while ...
Score of 1
2 answers
216 views
Error: "Content type is not Multipart/Form-data" for large PDF/JPG uploads
I'm encountering an issue when trying to upload files larger than 10MB. when I attempt to upload a PDF or JPG file that exceeds this size, I receive the following error message:
Error: Content type is ...
Score of 1
1 answer
78 views
How to save multiple plots showing raster layers in a matrix grid into a specified folder at 600 resolution as a jpeg in R
I've plotted multiple rasters into a matrix grid and I'd like to save the plot into a specified folder in my directory. My plots are for a poster presentation at a conference and the images need to be ...
Score of 2
0 answers
106 views
Colors changed after JPEG to PNG conversion using PIL
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 ...
Score of 1
1 answer
277 views
How to use Java's ImageIO to write JPEG with large embedded thumbnail?
I'm using javax.imageio.ImageIO to write JPEGs. By default: if I try to write an image with a thumbnail that thumbnail is clipped to 255x255.
Is it possible using only ImageIO classes to embed a ...
Score of 0
1 answer
96 views
CSS background image does not appear
I have CSS-styled span element with a width and height, and a background-image, which does not appear although a box of the expected size is reserved on-screen.
If I try a different jpg file, the ...
Score of 2
1 answer
164 views
jpegtran wipe: color vs grayscale image
Consider the following simple shell script (Debian/stable) system (*)
% ./demo.sh
26b955f9e6987c2617c97a653f1fe3dd mask_white_gray.jpg
4fe7eb3d04c54887c1b0c9c33f8526bf mask_gray.jpg
Looking at the ...
Score of 0
0 answers
83 views
Generate JPEG-in-TIFF without recompressing JPEG source in Java
I need to wrap a JPEG image as TIFF (aka. "JPEG-in-TIFF") without changing the JPEG data (i.e. without decompressing and re-compressing the original JPEG image, which would hurt the image ...
Score of 0
2 answers
110 views
How to set dpi on jpeg image download?
$("#download-pdf-template").on("click", function(e) {
overallwidthcover = parseFloat(Number(overallwidthcover).toFixed(3));
overallcoverhegiht = parseFloat(Number(...
Score of 0
2 answers
60 views
Problem with displaying JPG images in spring application through Vaadins UI
I'm developing a spring application. I'm using Vaadin for building user interface.
I have class like this which should be responsible for displaying images.
@SpringComponent
@Scope("prototype&...
Score of 0
0 answers
118 views
Large image resize to small thumbnail
I have large JPEG images of around 2000 x 1500 (a few Megabytes in size).
I wish to resize them for display to 200 x 150 (ideally 10KB or so) in a phone app.
I'd like to know what would be the best ...
Score of 0
1 answer
82 views
Send the image created on canvas to the backend server
I have canvas and for now, i downloaded jpg file with this.
var a = document.createElement('a');
a.href = ref_canvas_release.current.toDataURL('image/jpeg', 0.85);
a.download = GlobalParam....
Score of 0
1 answer
139 views
Encoding ac and dc cofficients in jpeg compression after zigzag ordering
I'm trying to implement JPEG compression in python and so far I have done the following steps
Color Space conversion
Downscaling chrominance channels
8x8 block splitting ( adds padding if size is not ...
Score of 0
2 answers
288 views
Decoding jpeg images with ICC metadata
There are several jpeg decoders like ijg, libjpeg-turbo, mini jpeg decoder, ... Assuming that the encoded jpeg file internal color format is YCbCr, to produce the final RGB image, the decoders have to ...
Score of 0
0 answers
289 views
gulp why I get the Error: Input buffer contains unsupported image format?
I am using gulp to simply clone a src folder (jpeg images only).
I used the official documentation -> (https://www.npmjs.com/package/gulp-scale-images)
When I enter gulp in my terminal to run my ...
Score of 1
1 answer
102 views
Compress jpg with zopfli prevents jpg to be shown on EVE2 display
In order to save flash data and SPI traffic, I'm trying to compress my JPG images with zopfli before sending them to NHD-7.0-800480FT-CSXV-CTP. I'm using this library and an ESP32-S3.
For reference, ...
Score of 1
1 answer
172 views
CBZ image concatenation in GoLang
I am trying to take a .cbz / comic book file, read the images into a single byte array and return it as a single image to serve in a web application. For testing purposes a .cbz file is just a rar ...
Score of 1
0 answers
299 views
PHP libvips convert HEIC to JPG
I have the following code in PHP that is responsible for taking in a file and then converting it from HEIC -> JPG using the https://www.libvips.org/API/current/VipsForeignSave.html#vips-jpegsave ...
Score of 0
1 answer
198 views
How to update exif data without losing JFIF header?
I use the following code to rotate an JPG image by 180 degrees, by updating EXIF header. I want to avoid re-encoding the image :
import PIL
import piexif
filename = "somefile.jpg"
img = PIL....
Score of 1
0 answers
90 views
How do I retain the original jpeg image quality when I create a canvas
I have a form that displays a bunch of barcodes in jpeg format. When I right-click on an image and choose "saveAs", the file is saved with the original quality of the jpeg:
<div style=&...
Score of 0
0 answers
92 views
inDesign Script Errors for Batch Exporting
I need to batch process exporting pages from an INDD document into different formats. here is what I have so far:
var pdfPreset1 = app.pdfExportPresets.item("[Smallest File Size]");
var ...
Score of 0
2 answers
182 views
Where Delphi TFileFormatsList gets it members and is this dependent on installed third party libraries?
I am experiencing that Delphi's TImage component is very poor. I am working with various Delphi versions starting from Delphi 6 (2000 edition, we still have some projects on it) and ending with Tokyo, ...
Score of -1
1 answer
64 views
ImageMagick: shaded colors become total black [closed]
I need to convert a pdf file containing only one image to a .jpeg or .png format using ImageMagick.
This is the image. Original PDF file: https://file.io/WMEsCGtbodwz
Using the command line
convert -...
Score of 0
0 answers
47 views
For a 2D single channel image, what is an appropriate criterion to reorder the rows, such that a JPEG-like encoder performs the best?
I have a huge amount of time series data, each representing some observations at a certain position. Thus of course there exists spatial correlation. I am trying to reorganize these lines of ...
Score of -1
2 answers
102 views
How to make the white background of a jpg image transparent using Python?
My JPG image has a white background around it. I don't want to change the image itself, I just want to make the white background transparent.Here is the code:
import cv2
import numpy as np
from PIL ...
Score of 0
0 answers
109 views
How to write camera serial number to a jpeg image using C#
I am trying to determine how to write the camera serial number to a jpeg file using C#. I had thought that it would be case of setting an appropriate EXIF header value (and maybe it is), but when I ...
Score of 1
0 answers
42 views
Restore initial image from pixelated jpeg
I have an image of a car with its license plate. I need the text on the license plate. The image is a pixelated jpeg.
I know that by compressing information is lost.
My question: I want to generate ...
Score of 0
1 answer
473 views
Technical description of AVIF
I'm looking for a technical description of AVIF, in order to understand how it works. Something similar to ITU T.81 from 1993 which describes clearly how JPEG works.
I'm aware of the description of ...
Score of 0
0 answers
133 views
How to extract DCT coefficient matrix by jpeglib in python?
I have the below code and i get this error:
File "C:\Users\omar\AppData\Local\Programs\Python\Python312\Lib\site-packages\jpeglib\functional.py", line 71, in read_dct
return DCTJPEG(
^^^^^^^...
Score of 1
0 answers
62 views
Why does my paste of `image/jpeg` data not work on some X11 applications (mainly Chrome)?
I am running X11 11.0 / X.Org 1.21.1.7 on Debian 12, though I have the feeling this is not related to my particular version of X11.
I have a script that does an image capture from my screen using ...