Skip to main content

Questions tagged [libjpeg]

libjpeg is a widely-used free software library written in C which implements JPEG decoding and encoding functions alongside various utilities for handling JPEG images. This library is maintained by the Independent JPEG Group (IJG), an informal organization which is not affiliated with the JPEG ISO committee.

Filter by
Sorted by
Tagged with
802 votes
32 answers
712k views

How to fix homebrew permissions?

I have uninstalled and installed Homebrew 3 times now because it seems to never allow me to install anything as it denies me permissions at the end of most installations. As an example I will post ...
Paul Rada's user avatar
  • 19.4k
56 votes
8 answers
52k views

PIL /JPEG Library: "decoder jpeg not available"

I tried to use PIL to do some JPEG work in my django app with PIL but I'm getting this IOError.. not sure what to do. ""decoder jpeg not available"" Am I missing the JPEG decoder from my server? If ...
Brian D's user avatar
  • 10.1k
38 votes
7 answers
37k views

Installing PIL with JPEG support on Mac OS X

I posted a question before regarding this subject, and read other ones posted before, but none has successfully solved my problem. I am trying to install PIL on Mac OS X Lion, as I need it for a ...
user avatar
30 votes
7 answers
46k views

Compiling libjpeg

Is there anyone who succeed to include libjpeg in some compiler? I tried everything: Dev C++, VS10, CodeBlocks, copy the headers and the lib by hand, add with the linker but nothing. Right now I am ...
NiVeR's user avatar
  • 9,768
26 votes
5 answers
23k views

Write to memory buffer instead of file with libjpeg?

I have found this function which uses libjpeg to write to a file: int write_jpeg_file( char *filename ) { struct jpeg_compress_struct cinfo; struct jpeg_error_mgr jerr; /* this is a ...
Richard Knop's user avatar
  • 82.8k
22 votes
3 answers
60k views

Compiling PHP with GD and libjpeg support

I compile my own PHP, partly to learn more about how PHP is put together, and partly because I'm always finding I need modules that aren't available by default, and this way I have control over that. ...
Robin Winslow's user avatar
21 votes
3 answers
9k views

Error handling in libjpeg

I am using the C++ JPEG library (libjpeg) and I have realized that when some functions fail exit() is called and the application is closed. How can I override this behavior and prevent the application ...
Didac Perez Parera's user avatar
20 votes
5 answers
64k views

How to install libjpeg?

I tried these commands: pip install libjpeg8-dev pip install libjpeg-dev pip install libjpeg-devel pip install libjpeg pip install libjpeg62 libjpeg62-dev but none of them works. What is the right ...
DSblizzard's user avatar
  • 4,069
19 votes
3 answers
27k views

How to install libjpeg on OSX?

libjpeg or libjpeg-turbo are requirements for installing Pillow, which is a new requirement for storing images on django. So I need to install Pillow but that won't work until I get jpeg support ...
jeffery_the_wind's user avatar
16 votes
2 answers
12k views

libjpeg API and Reference [closed]

I am having trouble finding an API that details functions calls and return values... The headers aren't exactly very clean either... I have found tons of examples, but I'm interested in error ...
Constantin's user avatar
  • 17.5k
15 votes
2 answers
8k views

Python, PIL and JPEG on Heroku

I have a Django site, hosted on Heroku. One of the models has an image field, that takes uploaded images, resizes them, and pushes them to Amazon S3 so that they can be stored persistently. This is ...
errkk's user avatar
  • 305
15 votes
3 answers
5k views

Throwing an exception in C++ in a C callback, possibly crossing over dynamic library boundary... is it safe?

I'm using libjpeg right now to save JPEG images. If there is an error, libjpeg's default behavior is to call exit(), which I want to avoid since it's not a fatal error for my program. libjpeg allows ...
Cornstalks's user avatar
  • 37.8k
12 votes
1 answer
14k views

PHP Imagick JPEG Optimization

I'm using PHP Imagick to resize images at runtime. The site has an image upload feature and we can't trust the user to use web-friendly JPEGs, as during the mass-import there are many 3 to 5MB images,...
MaKR's user avatar
  • 1,892
12 votes
1 answer
903 views

Do the libjpeg and the .Net jpeg codec really differ significantly on monochrome data?

I work with a lot of monochrome image data and this morning I noticed that there appears to be a significant difference between the way libjpeg and the .Net jpeg codec handle monochrome data. It ...
user avatar
11 votes
3 answers
6k views

Can I use libjpeg to read JPEGs with an alpha channel?

There seems to be some debate about whether JPEGs with alpha channels are valid or not. The answer I had always understood to be correct is that in the JPEG FAQ, which is essentially "No". (This is ...
Mark Longair's user avatar
11 votes
1 answer
783 views

Tensorflow: DecodeJpeg method gives different pixel values on desktop and mobile for the same image

I have used Tensorflow's DecodeJpeg to read images while training a model. In order to use the same method on an android device, I compiled Tensorflow with Bazel for android with DecodeJpeg. I tried ...
Effective_cellist's user avatar
10 votes
4 answers
37k views

Need help in reading JPEG file using libjpeg

I followed the example code in the libjpeg example file, however I was not able to read the image data. I have the following struct, and I created an instance of this struct. struct ImageData { ...
all_by_grace's user avatar
  • 2,325
10 votes
6 answers
10k views

libjpeg decoding to BGR

I am using libjpeg to decode a jpeg image from disk to a memory buffer allocated on the heap. I use jpeg_read_scanlines to read and decode each scanline from the file. This is working perfectly, ...
Thomas Sampson's user avatar
9 votes
3 answers
8k views

How to solve IOError:broken data stream when reading image file?

Im working under Ubuntu 11.04. I'm trying to work with PIL in my Django project. Sadly PIL cannot load my image. Here is the PIL setup summary: PIL 1.1.7 SETUP SUMMARY ------------------------------...
Joseph Lafuente's user avatar
8 votes
2 answers
22k views

Where Can I find a good tutorial for IJG libjpeg [closed]

I need to do some work with this library and I'm finding the documentation at http://apodeline.free.fr/DOC/libjpeg/libjpeg.html to be deficient (incomplete function signatures, etc). Does anyone know ...
Dana the Sane's user avatar
8 votes
2 answers
2k views

How can I fix this? JavaFX - Wrong JPEG library version: library is 80, caller expects 70

I get this error whenever I try to create an Image in JavaFX. Absolutely no images are loading, but everything else on the UI is. The only time I see this is when prism.verbose=true Other answers to ...
arjabbar's user avatar
  • 6,314
7 votes
9 answers
11k views

_imaging C module error in python PIL

I have read the other posts about the notorious _imaging C module error when installing PIL on Mac OS X and none of the solutions provided anywhere, including the PIL FAQ, have proven helpful. I have ...
ely's user avatar
  • 76.6k
7 votes
2 answers
11k views

How to compress YUYV raw data to JPEG using libjpeg?

I'm looking for an example of how to save a YUYV format frame to a JPEG file using the libjpeg library.
vdm's user avatar
  • 195
7 votes
1 answer
5k views

Error trying to install libjpeg-devel with elastic beanstalk

I am trying to do some image resizing on my Django application running on AWS Elastic beanstalk, so I am trying to install Pillow to do the job. As described in some previous posts, I am adding ...
dkarchmer's user avatar
  • 5,504
7 votes
1 answer
19k views

'jpeglib.h' file not found

I am trying to read a jpg image in c++. I downloaded libjpg as it was suggested at this link https://www.opengl.org/wiki/Image_Libraries and installed it. Although when I include the library Xcode ...
u09's user avatar
  • 469
7 votes
2 answers
5k views

jpegtran whole directory

I want to optimize the whole test folder with jpg images from a command line. I found this but it doesn't work: cd /home/site/html/update/test/ find . -exec jpegtran -optimize "{}" "{}.opti.jpg" "{}" ...
Bas's user avatar
  • 2,360
7 votes
1 answer
8k views

Fast way to decode JPEG image

I need to decode (unpack into bitmap) pretty small (about 1200 * 1200) JPEG. The problem is I need to do it quickly. I have tried libjpeg, and it's quite slow. I have also tried BitmapFactory....
Violet Giraffe's user avatar
6 votes
6 answers
22k views

How do you upgrade MAMP's PHP to PHP 5.3 ?

I haven't been able to find any resources on how to do this.. Anyone have any ideas or resources?! I've tried changing the ./configure options and I'm solving things one at a time but it seems like ...
Matt's user avatar
  • 22.7k
6 votes
2 answers
4k views

How to use libjpeg to read a JPEG from a std::istream?

libjpeg can read JPEG data from a FILE* or a buffer. My data is coming from a std::istream. I could read the entire std::istream into a buffer to use with libjpeg, but I'd rather have libjpeg read ...
uckelman's user avatar
  • 25.8k
6 votes
1 answer
2k views

Getting Django to recognize PIL JPEG support

I am running Django 1.4 and PIL 1.1.7 in a virtualenv managed with pip. Whenever I upload a JPEG file via my admin interface, I get the following error: Upload a valid image. The file you uploaded was ...
novembrine's user avatar
6 votes
2 answers
5k views

JPEG parameter struct mismatch

Ater compiling libjpeg and then using it, I stumbled upon the problem: JPEG parameter struct mismatch: library thinks size is 512, caller expects 492 after which the program halts. This happens ...
user3F31A28's user avatar
6 votes
1 answer
626 views

How to write the modified exif in source image file (like JPEG, TIFF, PSD)?

I used libexif to read and modify the exif metadata in JPEG file. I am not sure on how to write/save the modified contents in the original source image file? Any ideas?? Thanks.
ext.dev's user avatar
  • 121
5 votes
3 answers
11k views

libjpeg ver. 6b jpeg_stdio_src vs jpeg_mem_src

I am using Libjpeg version 6b. In version 8 they have a nice function to read data out of the memory called jpeg_mem_src(...), unfortunately ver. 6b does not have this function. What can I use to ...
rossb83's user avatar
  • 1,742
5 votes
3 answers
7k views

Problems with Snow Leopard, Django & PIL

I am having some trouble getting Django & PIL work properly since upgrading to Snow Leopard. I have installed freetype, libjpeg and then PIL, which tells me: --- TKINTER support ok --- JPEG ...
Cato Johnston's user avatar
5 votes
2 answers
12k views

Call to undefined function Intervention\Image\Gd\imagecreatefromjpeg() Laravel 8 + Docker desktop 4.4.4

This is my docker file: FROM php:8.0-fpm-buster # Arguments defined in docker-compose.yml ARG user ARG uid # Install system dependencies RUN apt-get update && apt-get install -y \ build-...
Misagh90's user avatar
  • 479
5 votes
4 answers
21k views

Error bootstrapping makefile fragments while building libjpeg/9d with Conan

I have been trying for several days to install OpenCV with Conan (on Windows 10). However, the installation is failing on building the libjpeg/9d dependency. Conan profile: [settings] arch=x86_64 ...
Valeria's user avatar
  • 1,592
5 votes
4 answers
16k views

Compressing IplImage to JPEG using libjpeg in OpenCV

So I have this problem. I have an IplImage that i want to compress to JPEG and do something with it. I use libjpeg. I found a lot of answers "read through examples and docs" and such and did that. And ...
user avatar
5 votes
1 answer
18k views

PIL encoder jpeg not available [duplicate]

Possible Duplicate: pip install PIL -E TICKETS-1 - No JPEG/PNG support I'm working on a picture cropper, and I'm having trouble with my form validation. The form is validated when uploading a GIF ...
Nathan Jones's user avatar
  • 5,054
5 votes
2 answers
5k views

Compile libjpeg with mingw

I finally setup mingw and msys and now I want to compile libjpeg. I downloaded the latest libjpeg sources from the projekt page (jpeg-8d) and extracted the files. Then I ran the configure command ...
Maecky's user avatar
  • 2,028
5 votes
1 answer
5k views

Compiler error in mingw-w64: 'undefined reference to `__getreent.'

I'm currently in the (nightmare) task of trying to compile cImg and libjpeg in Windows. After many hours, I was finally able to build libjpeg and I've included it within the build process (cImg needs ...
user1311627's user avatar
5 votes
2 answers
7k views

configure script not enabling make to generate shared library

This is in regards to compiling libjpeg v6b if that is relevant. I run ./configure --prefix=/c/tmp/jpeg-6b-build --enable-shared --enable-static like the install doc says but libtool isn't having it. ...
Enigma's user avatar
  • 1,247
5 votes
2 answers
6k views

Configuring libjpeg in Visual Studio 2010

I want to congfigure libjpeg in VS10. I found this guide http://www.leptonica.org/vs2008doc/building-image-libraries.html and downloaded the archive of the library from the same site.The problem is ...
NiVeR's user avatar
  • 9,768
5 votes
3 answers
7k views

Android NDK Native JPEG encoding

How can I encode an array of ARGB pixels into JPEG (jpg) file using the NDK in C? But not using any call to the Java API wrappers from it? I saw there is a library call libjpeg, but I couldn't find ...
Perraco's user avatar
  • 17.1k
5 votes
1 answer
3k views

libjpeg decode nv12 or yuv420p

I'm trying to get a YUV420 palanar or semiplanar (NV12) image out of jpeg using libjpeg. I see that there is a option to specify output format to JCS_YCbCr which would generally be a YUV format, but ...
N0name's user avatar
  • 163
5 votes
1 answer
1k views

Is it better to use jpeg_write_scanlines with multiple scanlines at once?

Using libjpeg (or libjpeg-turbo) to do JPEG encoding, I was wondering if there is any improvements providing multiple scanlines at once to the jpeg_write_scanlines function. I did some tests on ...
Adrien Clerc's user avatar
  • 2,747
5 votes
2 answers
4k views

Decode part of JPEG file

I'm trying to load part of big JPEG file (hundreds of megapixels) with a limited memory footprint. I need only about a 1000 scanlines of 20000. It seems that current implementation of libjpeg (as well ...
thesame's user avatar
  • 113
5 votes
2 answers
3k views

How can I correctly open/decode a jpeg image that has more than 65500 * 65500 pixels?

I'm trying to extract image content from a file generated by Hamamatsu NanoZoomer slide scanner. The NDPI file uses a modified TIFF structure and stores image content in one big chunk in JPEG format. ...
user3667217's user avatar
  • 2,192
5 votes
1 answer
688 views

What is the difference between JCS_RGB and JCS_EXT_RGB in libjpeg?

How is JCS_EXT_RGB different from JCS_RGB, and when should I use each?
frp's user avatar
  • 1,129
4 votes
4 answers
6k views

Get compression ratio of image

I use LibJPEG to read JPEG compressed images. Is there a way to get the current compression ratio of the unchanged image?
Van Coding's user avatar
  • 24.4k
4 votes
2 answers
6k views

Cannot install jpegoptim on Centos 6

I am trying to install jpegoptim on a CentOS 6 server. I have downloaded and unpacked the package but when I try to run ./configure from the jpegoptim-1.3.0 directory I get an error that says: "...
user1780242's user avatar

1
2 3 4 5
9