Questions tagged [jpeg]
JPEG is a common lossy compression method for digital images. Use this tag for questions about JPEG images using the image/jpeg MIME type.
4,940
questions
-4
votes
0
answers
23
views
python converted jpg to tif file opencv did not accept [closed]
my dear friend
I have converted jpg file to tiff file but OpenCV did not accept this file by python code
but when i open this file in windows paint and save as tiff file then OpenCV accept this file
...
0
votes
0
answers
18
views
Where and How to tell Youtube to create the WebP Thumbnails which are missing?
I am an editor, using the Youtube Player and my website displays the thumbnails in jpg since many years.
I do that with success thanks to the videoId and the IMG HTML tag :
src="https://i.ytimg....
0
votes
0
answers
11
views
Why WordPress convert my webP images into JPG?
ENVIRONMENT: WP Version 6.4.1
When I want to upload a webp image in my woocommerce product, WordPress converts my webP image into JPG.
So I deactivated all the plugins and tried to upload my webP from ...
0
votes
1
answer
36
views
stuck on jpg image forensics task
I am trying to understand a jpg forensics problem, the organizers mentioned that i need to change 1 or a few bytes in the ff c0 segment, i can't seem to figure it out at all, the name of the challenge ...
0
votes
6
answers
142
views
How can I extract the "Compression" attribute from a jpeg file in Windows 10 using VBA (or PowerShell)?
I'm trying to extract the Compression attribute from several thousand jpeg files.
How can I do this with either Excel VBA or PowerShell (or some other method)?
Some users haven't used the correct ...
0
votes
0
answers
42
views
Unreliable JPEG transfer over socket in Java [duplicate]
I am currently working on a project aimed at developing a screen share program. The program involves a client that can act as either a sender or receiver and a server that facilitates the distribution ...
-1
votes
0
answers
28
views
How to find a JPEG images quantization table?
I'm currently working on a project in image forensics and was wondering if there was a way to access a JPEG image's quantization table from that file? More specifically the table that was used in its ...
0
votes
0
answers
7
views
How to open an image by clicking on image control in a userform
I need help with creating code so when a user clicks on an image control a jpg (or best format) image pops up in front of the userform. I searched online and haven't found anything yet.
0
votes
0
answers
23
views
Harware-accelerated image (png or jpg) decoding in Android?
I'm working on batch processing photos in Android mobile device.
I've tried multiple standard & third-party libraries and found that they uses libjpeg-turbo and libpng internally via SKIA library ...
0
votes
1
answer
59
views
How to Convert SVG to PNG in Node.js, Including Base64-Encoded Images?
Hello Stack Overflow Community,
I am working on a Node.js project where I need to convert SVG files to PNG & JPEG format. My SVG files are unique in that they include images encoded as base64 data....
0
votes
0
answers
48
views
How to retain TIFF compression while reconverting it back from JPEG?
I have a use-case where I am consuming .TIFF files from upstream. However, the downstream doesn't support .TIFF format and as such, I am converting it to JPEG :
BufferedImage tiffImage = ...
0
votes
0
answers
17
views
For some reason, images aren't rendering on a Vercel app even though they render on localhost
Here's the repo:
https://github.com/DanielRLi0505/Magic-Den-Recipe-Finder-for-Boba-Story
And the images are in /public/icons.
I even did some configurations to next.config.js, and still nothing. The ...
1
vote
1
answer
82
views
Saving a png image to json file in python [duplicate]
I need to save a png image to a json file in python. In addition, the beginning of the json file must look like this:
{"image":"data:image/jpeg;base64,/etc.
I suspect that this means ...
0
votes
1
answer
26
views
Shell script batch removal of letters & numbers before certain symbol in reoccuring patterns
How do I create a shell script to remove evertyhing before the first occuring "_" in various JPGs as:
45-gawk-120_19529903_45369252_2048.jpg
orf-100-silt-turf_14858652_32781876_2048.jpg
...
0
votes
0
answers
31
views
How to deal with 2x2 Y-component sampling factors in a 16x8 JPEG image?
This question concerns building JPEG decoders.
Below is a sample image I generated with Photopea. It is 16x8. The left 8x8 is black, and the right 8x8 is white. It is encoded YCbCr, so three ...
-1
votes
2
answers
51
views
How to shuffle jpg image files and rename sequentially with batch / Windows
I have a 520 jpg files image sequence named:
001.jpg
002.jpg
.
.
.
520.jpg
I would like to shuffle the images (keeping the same sequence filenames) with a windows batch script.
Is this possible?
0
votes
0
answers
26
views
ByteArray can be shown as image in swift using UIImage, but not in Kotlin using BitmapFactory.decodeByteArray
I am reading some byte array object from NFC adaptor using Swift and Kotlin,
then I encounterd one problem.
Following protocol I got byte array with length 1983, which is stored in [UInt8], which can ...
0
votes
1
answer
63
views
huffman table in jpeg decoding
i am trying to implement a JPEG decoder. i was following JPEG standard T.81.
i understand how the JPEG file is structured, different marker, etc.
the type of images i am dealing with is lossless, ...
0
votes
2
answers
74
views
Why can't I use Image.open on PIL files?
I have written a simple code to download an audio dataset from ccmusic on hugging face. Problem is that somehow I can't open PIL images from said dataset with Image.Open() ... Can somebody explain why ...
0
votes
1
answer
33
views
How to save a GNUPLOT to the correct size and resolution in mm?
I use GNUPLOT to generate a plot, the plot is like a grid with horizontal and vertical lines. the light blue lines are 1mm apart and dark blue are 5mm (a total of 250mm wide x 195mm height)
So I want ...
0
votes
0
answers
29
views
Comparing JPEG images in PIL
I am trying to assert equality between JPEG Images using PIL:
Currently, I'm relying on exact comparison using the following:
from PIL import Image, ImageChops
img1 = Image.open("tmp_img.jpg"...
0
votes
0
answers
61
views
Wrong result after converting image from floating-point to unsigned in implementing JPEG
I have a problem with my code in implementing the JPEG compression using OpenCV and C++. On the encoder and after the code does the DCT when I add a line of code, which converts the planes from 32-bit ...
0
votes
2
answers
65
views
8x8 Quantization matrix on 4x4 subsampled matrix. JPEG
I have a problem with the jpeg algorithm.
We start with a block of 8x8 pixels. Separate luminance Y from crominance Cb and Cr
Then, we subsample Cb and Cr by averaging each 2x2 block.
Thus, Y is 8x8 ...
0
votes
2
answers
27
views
PIL Image conversion - TIFF to JPG and ignoring hidden files and directories during processing
I have written the code and the program outputs the jpegs to the correct directory images/opt/icons. I am also able to run Python 3 and open and check the file type and size characteristics. So I ...
0
votes
0
answers
84
views
Python PIL error JPEG, JPG file : encoder error -2 when writing image file
I am using python 3.8.10 and PIL version 9.0.1. My application runs in both windows and linux (red-hat).
I have to resize, crop and save image in new path. PNG, GIF image works fine but JPG and JPEG ...
0
votes
1
answer
19
views
colour jpeg block black by modifying AC coefficient
I'm trying to colour a region of a JPEG image black on DCT space by manipulating the individual DCT coefficients values on libjpeg.
I get that the DC coefficient specifies the hue. So, ignoring up/...
0
votes
0
answers
145
views
How to store metadata into a PNG or JPG with cv2, and restore it later?
How to save a string metadata to a PNG or JPG file written with cv2?
It could be EXIF or any other format, as long as we can retrieve it later, like in the example below.
Note: linked but not ...
0
votes
2
answers
49
views
How to batch process images in a directory to create teaser-like thumbnails
I would like to run a script that goes through the jpgs in a directory one by one, takes a small square clip of the center of the image (100x100 pixels, for instance), and saves that square in a ...
2
votes
2
answers
113
views
Golang generate a consistent hash for jpeg image without writing to disk
New to golang imaging
I am attempting to generate a consistent hash for a jpeg image.
Loading the image and generating a hash value on the raw bytes gives me a different hash when I reload the image ...
0
votes
1
answer
47
views
How can I push images from a folder into an array?
This is my first time posting a question to stack overflow but I will try my best to explain it. I am trying to load .jpg info from a folder on my server to an Array with each image going to a ...
2
votes
0
answers
284
views
ios17, html file input capture, photos privacy options
__ RESOLVED
visited apple store tested on iphone14 , ios17 with location on for camera / safari
photos selected from the photoroll will bring up the options menu and will preserve the embedded ...
1
vote
1
answer
42
views
Delete Prefixes of JPG names till '_'-symbol in POWERSHELL
Good day!
We have folder with many JPG-files which named in the following format: "1_abcd_0000.jpg", "12_defg_0001.jpg", "123_ghij_0002.jpg".
I need to cut 1-st part of ...
0
votes
0
answers
46
views
Why is there a optimal Huffman table in the header of a progressive JPEG image?
Images compressed with the JPEG progressive mode can have multiple scans.
From what I understand, each scan can have its own Huffman table, as the default Huffman tables from the JPEG standard are not ...
0
votes
1
answer
66
views
How to perform motion compensation on two jpeg pictures?
Now I have several JPEG images taken in a burst, and I want to use motion compensation technology on them to reduce the difference between them.Is there any ready-made code that can be used, ...
1
vote
1
answer
161
views
In Python, how to insert PNG image converted from html WEBP to excel without saving image and appending images in local PC folder?
My target is scraping html data including sorted information and WEBP images and saving to Excel sheet.
WEBP format images cannot be inserted to Excel sheet directly. The only way is converting WEBP ...
1
vote
1
answer
93
views
Issue using imagecreatefromjpeg() to upload jpg Image file
When I try to use imagecreatefromjpeg() on certain jpg files from my phone onto my site, I get some that have issues with validating they are actual jpg images.
The errors I get when I tried:
PHP ...
1
vote
1
answer
274
views
WebCodecs - create mp4 video from jpg images
I started playing with WebCodecs API. I try to create mp4 video from set of jpg images.
Starting with something simple, I'm trying to create an mp4 from one jpg image. When the output callback is ...
1
vote
0
answers
129
views
Flutter - Convert YUV to RGB
New to flutter so hopefully you can help.
I've got a directory full of .yuv files (created from startImageStream() with the camera package - ImageFormatGroup.yuv420).
I'd like to convert these files ...
1
vote
0
answers
40
views
HTMLCanvasElement.toDataURL() JPEG quality different on Apple and Windows
I have a canvas, in memory, not part of the DOM, that I write image bytes to. The image size is 1008 x 756 (a 4032x3024 photo reduced to 1/4 size). I then call canvas.toDataUrl('image/jpeg',.8) to ...
0
votes
0
answers
24
views
How to subsample YCbCr in 4:2:0 format in JPG files? [PHP]
For a mathematical bachelor thesis I am trying to code a simple JPG encoder in PHP.
After after hard work I made it to create a script that reads out the colors of a PNG file, transforms it to YCbCr ...
0
votes
0
answers
426
views
how to convert heic image to jpg image in java
I need to convert heic image to jpg image in java.
I need to perform it locally using java without any propriety package or calling external api to convert it. So far tried with twelevemonkey packages ...
0
votes
2
answers
13
views
Python object not recognized as JPG despite previous manipulations
I am writing a program that pastes one jpeg onto another, however one of my functions stops recognizing an object as a jpeg file for unknown reasons.
My output is
"inside_select_letter_to_paste, ...
0
votes
1
answer
204
views
Why is a JPEG file size of a PDF bigger than original PDF?
For the purpose of taking up less space, I'm taking all pages inside a single PDF and stacking them vertically in a single JPG image using PDFBox.
BufferedImage combinedImage = new BufferedImage(...
0
votes
1
answer
27
views
React https image link working but local image link isn’t
I have an images.js file in React that imports data.
import { aData } from './aData';
I have a data.js file with the following code.
export const aData = [
{
image:
'https://…'
},
{
...
-1
votes
1
answer
57
views
How do I add white text with a black drop shadow to any image?
I'm using github.com/fogleman/gg to draw some white text on an image:
existing, _ := gg.LoadJPG(path)
dc := gg.NewContextForImage(existing)
dc.SetRGB(0, 0, 0)
dc.DrawString(word, x, y)
dc.SetRGB(1, 1, ...
0
votes
0
answers
17
views
How to have code activated when viewing a image on discord?
I want to try to make code behind a image when it is viewed on discord like those image loggers and learn about how dangerous image files are.Im not sure if 1 click methods like those claimed are ...
0
votes
0
answers
102
views
Possible to convert JFIF string back to an image?
I am trying to read image data from a third party RESTful API.
The problem that I am running is the data is being returned in a data structure with the content type of "application/json".
Is ...
0
votes
1
answer
19
views
Append Multiple Jpegs from Command Line Jpeg
I have 103 jpeg images name-001 ... name-103 that I want to append vertically. I would like to do this from the Terminal and am using Ubuntu Operating System. I have tried researching and there are ...
0
votes
0
answers
26
views
Cannot programmatically remove any image files using ::DeleteFile or "remove"
I cannot delete a jpg, png or bmp using Windows DeleteFile or remove. I can, however, delete other types of files in the same directory (txt, yaml). To make things even weirder, I can open a command ...
6
votes
1
answer
280
views
Copy metadata fom one JPEG to another in Go
I'm trying to copy EXIF tags from one JPEG to another, which has no metadata. I tried to do what is described in this comment.
My idea is copy everything from the tags source file until the first ffdb ...