Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [jpeg]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
45 views

How to scan barcode in JPEG format with zbar in Linux?

I am working on an embedded Linux system (kernel-5.10.24). Now I am trying to use zbar-0.23 to scan barcodes in JPEG format, but I don't know how to do that. There is an example/scan_image.c, which ...
wangt13's user avatar
  • 441
0 votes
1 answer
76 views

How can I recover moved jpg files

On my ubuntu system I ran a command and moved all my jpg files to a single file by mistake src_dir=$1 echo "src_dir: $src_dir" for f in $src_dir/*; do if [ -f $f ]; then new_dir=...
Daemon's user avatar
  • 103
0 votes
1 answer
113 views

Bulk convert from PNG/TIFF to JPG with minimal loss in quality

I need to upload my photos to Shutterfly, but they don't seem to support EXIF data on PNG/BMP images. I need to thus convert to JPG for some prints, but I want to lose as little information as ...
olivarb's user avatar
  • 103
0 votes
1 answer
381 views

Open corrupted JPEG files (differently corrupted, missing data in the middle, missing headers) and try to recover the intact portions

Using ddrescue I rescued most of an old harddisk and afterwards recovered files using photorec. There is plenty of photos fully restored, which is great. But there is also plenty of broken JPEGs that ...
M. Schmidt's user avatar
2 votes
1 answer
125 views

Muxing a JPEG bitstream inside a TIFF container?

On my Linux system (Debian) I can decode and then re-encode JPEG to TIFF using: % ffmpeg -i input.jpeg -pix_fmt rgba output.tiff Or even using libtiff-tools: % convert -size 256x256 -depth 8 xc:white ...
malat's user avatar
  • 3,092
0 votes
2 answers
373 views

How to use jpegoptim to have files only 20kb in size?

I have tried using jpegoptim and even tried the manpage but am stumped. Here is a file I want to reduce to 50k and even open to reducing quality of the data - Image: Filename: shirish.jpg Format: ...
shirish's user avatar
  • 12.5k
0 votes
1 answer
103 views

Create MP4 or another playable video format from frame series of JPEG in a directory

So I have frame series of JPEG in a folder let's say folder cctv where inside of that folder is only series of JPEG with unix timestamp named in nanosecond. I mean like this ( I used tail because too ...
Muhammad Ikhwan Perwira's user avatar
5 votes
3 answers
16k views

Why is libjpeg.so.8 missing from Debian?

Debian 10, but same issue applies to Debian 11. Trying to run a certain binary (gaming), I get complaints about libjpeg.so.8 missing. apt-file search libjpeg.so.8 gives no results. However I can see ...
cat pants's user avatar
  • 487
0 votes
1 answer
205 views

What is the best way to upgrade a C library that comes with Fedora? Manually?

I am having an issue with JavaFX, which I posted on stackoverflow. Basically, the Java library calls a native function that needs the version 90 of the JPEG library. Here's the error message: java.io....
Luís Gustavo Monezi's user avatar
0 votes
1 answer
2k views

ffmpeg batch command to reduce file quality

I've got a directory with thousands of images (png, jpg, bmp, etc.) and thousands of videos (mp4, mpv, mpeg, etc.). The png images may be ~10 MB and I can open them one at a time in GIMP, reduce ...
Display name's user avatar
1 vote
2 answers
2k views

ffmpeg: Replace part of a video by a jpg file for 5 seconds

Sometimes I have a video in which I like to discard the video sequence for five seconds between second 11 and second 16 (as an example) and instead incorporate an image from a jpg file that is ...
vyasa's user avatar
  • 61
3 votes
1 answer
554 views

libheif giving unknown file type error debian 10

I tried using heif-convert 100 3313.heif 3.jpg to convert my file from .heic to .jpg, but it keeps giving me the error message Unknown file type in 3313.heif. What does this mean? I have libde265 and ...
Aarush Bothra's user avatar
1 vote
1 answer
1k views

How to repair Corrupted jpeg file that still get their thumbail done correctly?

I've got a bunch of photos that were on an SD card. Most of them are corrupted now, I cannot open them in any program (Gwenview, Gimp, on windows too...) But every file browser still can correctly ...
A. Ocannaille's user avatar
0 votes
0 answers
861 views

how can we send an image in the body of the mail using any of the mail utilities in Linux

How can we send an image in the body of a mail with rich text / HTML. I tried to get from few of the links , but i am not able to get complete solution. I tried below code but no luck mpack -s "...
Arya's user avatar
  • 316
5 votes
2 answers
2k views

How do I convert .JB2E files to a more common format?

I'm trying to convert some .jb2e images, which I extracted from a PDF, into a proper, common image file format like PNG or JPG. I tried using jbig2dec, but that told me jbig2dec FATAL ERROR Not a ...
einpoklum's user avatar
  • 9,615
2 votes
1 answer
2k views

Imagemagick: Installing Jpeg Decode Delegate with Existing Installation

I installed ImageMagick 7.0.8-11 Q16 x86_64 from source, and I didn't know that decode delegates are not automatically included when installing from source. I should have installed a binary of ...
whitewings's user avatar
  • 2,457
2 votes
1 answer
554 views

Does GIMP use mozjpeg?

If I use GIMP and look at different quality settings for JPEG compression, does this reflect (or, roughly match) the encoding efforts of mozjpeg? (E.g. the claimed "5% on average" improvement over ...
sourcejedi's user avatar
  • 50.8k
0 votes
1 answer
5k views

How does "Export as JPG" work in LibreOffice Writer?

In OpenOffice Writer there is no option to export a document as JPG, only export as PDF. Therefore to make an image, first I have to convert the document as pdf, then convert the PDF to JPG. But if I ...
Raj's user avatar
  • 1
2 votes
1 answer
102 views

Convert image with uncommon aspect ratio without stretching the image

I have found a map online, I like to print out (see link to original here: http://collections.lib.uwm.edu/digital/collection/agdm/id/4614/). However, it has an uncommon(?) aspect ratio, which I would ...
Til Hund's user avatar
  • 147
1 vote
2 answers
496 views

Lossless crop JPEG to whole 8x8 blocks

Since JPEG images are compressed in chunks of 8x8 pixels, if a JPEG has a width or height that is not divisible by 8, is it technically possible to remove the 1-7 pixels of the outer edge losslessly? ...
forthrin's user avatar
  • 2,309
3 votes
3 answers
2k views

Sort jpg according to creation date and convert to single pdf

On a Mac, how can I sort about 2400 jpg according to their creation date (i. e. stat -f %SB) via terminal and convert them in that order into one pdf? What if one jpg has been created today at 11:10 ...
Til Hund's user avatar
  • 147
1 vote
1 answer
216 views

How can I repack JPEG?

I have some JPEG files uploaded by users. I need to be sure they are "clean". Sure, I can just recompress them to JPEG again and I will get "clean" files but either I will loose quality or files will ...
Tom's user avatar
  • 237
6 votes
1 answer
2k views

How to add a custom GPS location to a picture?

Given a .jpg picture without associated GPS coordinates, how would you suggest to add custom coordinates to it?
user123456's user avatar
  • 5,058
4 votes
1 answer
273 views

Delete all images taken with specific camera

What I need: A command that deletes all .jpg files in the current directory and subdirectories that have been taken with a RaspberryPi Camera. (Ideally this should work with the Git Bash for Windows,...
Maurice's user avatar
  • 145
5 votes
1 answer
7k views

Extract latitude/longitude from an image using curl

curl -s -v -X HEAD http://sitename.com/123.jpg 2>&1 | grep '^< Last-Modified:' gets me a date. Any way I can retrieve gps coordinates of an image? Any other metadata?
Renox92's user avatar
  • 69
1 vote
1 answer
48 views

Using convert to create JPGs?

When I use convert image.png image.jpg to convert a PNG to a JPEG, does convert perform any lossy compression? How much?
David Faux's user avatar
6 votes
2 answers
4k views

jpegtran - losslessly crop left portion of image

I have a 1400x1400 image in which I want to trim 4 pixels to the left, 1 at the bottom and, to keep square proportions, 3 from the top. The problem is, whenever I perform a crop with jpegtran, pixels ...
Jeffrey Lebowski's user avatar
1 vote
1 answer
2k views

CDE: how to properly convert a jpeg image to xpm for use on wallpaper?

I want to convert a jpeg image to use on CDE as wallpaper. Take my jpeg(originally is hd 1920x1024) rescale to 320x240 with gimp convert to 8bit with convert convert 9.jpg -colors=256 9.xpm Then put ...
elbarna's user avatar
  • 12.7k
5 votes
1 answer
2k views

Losslessly change the dpi value of a JPEG on Linux

How can I change the dpi value recorded in a JPEG file without actually touching anything else, nor recompressing the image? Linux compatible solutions are welcome. This 2011 link says we may not ...
Totor's user avatar
  • 20.2k
3 votes
2 answers
1k views

Why can't I change my desktop background to a JPG in LXDE?

I would like to set my desktop background to a JPG wallpaper, but I cannot seem to. I have tried to by right-clicking the desktop and selecting "Desktop Preferences", but even when I select a JPG ...
Josh Pinto's user avatar
  • 3,493
11 votes
2 answers
11k views

Converting .NEF to .JPG

I am trying to convert .NEF files to .JPG and I am using the command: mogrify -format JPG *.NEF this produces mogrify: delegate failed `"ufraw-batch" --silent --create-id=also --out- type=png --...
Mire's user avatar
  • 111
0 votes
1 answer
283 views

How could I install epeg on Arch Linux?

I've been trying to install epeg on Arch Linux, and I'm not having any success. I tried following the instructions for compiling it on the GitHub site, but I just ended up with a libepeg.so and an ...
Victor Van Hee's user avatar
9 votes
1 answer
80k views

How to find all JPG files on the file system when .jpg extension is not obligatory ? [duplicate]

First thing I noticed when switched from Windows to Linux was, that Linux has no strict naming convention and no obligatory file name extensions like .bmp, .jpg, .exe etc. Therefore I can not tell by ...
Abdul Al Hazred's user avatar
2 votes
1 answer
6k views

Rename files based on directory names

How can I rename .jpg files in multiple folders based on the name of the folder? I also want the .jpg files to remain in their respective folders and not moved. The folder names have no spaces. So, ...
whitewings's user avatar
  • 2,457
4 votes
1 answer
2k views

Imagemagick: set IPTC parameters in jpeg image

With the Imagemagick command $ identify -verbose image.jpg so many properties of the image are shown. For example, in the output I can find Profiles: Profile-8bim: 1058 bytes Profile-iptc: 1017 ...
BowPark's user avatar
  • 4,925
4 votes
2 answers
10k views

How to get JPEG thumbnails quickly

My camera is very basic (understatement), but it does have one notable feature: its thumbnail mode is impressively fast; it loads a screenful of 9 thumbnails in less than a quarter of a second. Now, ...
i336_'s user avatar
  • 1,017
3 votes
1 answer
950 views

Need script: latest JPEGs to video, then delete old JPEGs

I have an IP cam which uploads JPEG pictures to an FTP folder on my Arch Linux box whenever it detects movement in the room it is looking in. It uploads a JPEG every second until all motion activity ...
nLinked's user avatar
  • 219
2 votes
1 answer
2k views

how to pdfjoin landscape and portrait oriented JPEG images to one PDF file?

I have some JPEG files. Most of them are landscape oriented, but some are portrait oriented. I want to combine them into one big PDF file. I tried pdfjoin but this results in all images beeing ...
erik's user avatar
  • 17.4k
0 votes
1 answer
514 views

How do Firefox and Chrome render JPEG images on Linux?

I'm having trouble with Firefox and Chrome for some time now and it's very irritating. Neither of these browsers will render JPEG images. Konqueror and Opera are fine though. What libraries I can ...
barrymac's user avatar
  • 1,145
0 votes
1 answer
1k views

Removing all tags from images [duplicate]

Possible Duplicate: Batch delete exif info How can I remove all tags from images under a directory (using Linux)? I can find all files with something like find pictures -type f -iname "*jpg" -...
teo's user avatar
  • 3
4 votes
2 answers
358 views

mpd/xine like daemon for displaying pictures?

I am looking for a daemon that allows me to programmatically display pictures under X and that listens to commands on a socket or network port. Basically think mpd or xine, just not for audio or ...
Christian's user avatar
  • 421
3 votes
1 answer
2k views

Shell script filtering through jpg files attributes

I'm trying to find a way to filter through thousands of jpg files, and keep only the files with a certain attribute (such as the camera brand with which the picture was captured). How can I do so?
Frédérick's user avatar
5 votes
6 answers
7k views

Stitch two JPEGs together into a PDF

I need to take two 8.5in by 11in JPEG images and merge them together into two pages of a PDF. Is there a commandline or GUI tool for this?
Naftuli Kay's user avatar
4 votes
2 answers
1k views

jpg to pdf without data loss

Trying to make such things: 1st step: convert img.jpg img.pdf 2nd step: pdfimages -j img.pdf img1 Comparing source and extracted images in HEX shows difference. How to make such conversion ...
Darkternal's user avatar
12 votes
3 answers
12k views

Convert a folder of images into a multi-page pdf file using command line tools?

I have a folder with 100 jpg images. I want to convert these images into a multi-page pdf file, with all the images (cropped to A4 size). They are already in the correct rotation. Which tools should ...
Somebody still uses you MS-DOS's user avatar
4 votes
4 answers
3k views

How to generate jpg thumbnails and browsable html pages from command line?

I am searching for a simple command line tool that takes a bunch of jpg files as input, copies them to some destination and generates some browsable html for it (including index page, preview ...
maxschlepzig's user avatar
  • 57.7k