libjpeg

alternatives to jpeg_read_header libjpeg

試著忘記壹切 提交于 2019-12-10 20:24:10
问题 So I'm running into an issue using libjpeg on Windows which causes jpeg_read_header() to crash. The problem is (fairly hilariously) described here: http://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/1629371?message=4053776 I've decided on the 3rd option, which is not using jpeg_stdio_src/dest APIs. However, after much googling, I can't seem to find the 'other ways to feed data into libjpeg' mentioned at the end of the post, can anyone point me to the right place? 回答1: Sompe

libjpeg: compile error

不羁的心 提交于 2019-12-10 17:32:30
问题 I'm trying to compile libjpeg (version 8d) by using mingw-w64. The commands I launch to build it are: msys.bat ./configure make At the third step I get this error: $ make D:/Builder/bin/make all-am make[1]: Entering directory `d:/8d' CC jaricom.lo CC jcapimin.lo jcapimin.c:127:1: error: conflicting types for 'jpeg_suppress_tables' jcapimin.c:128:1: note: an argument type that has a default promotion can't match an empty parameter name list declaration In file included from jcapimin.c:22:0:

GraphicMagic安装说明

淺唱寂寞╮ 提交于 2019-12-10 15:15:28
GraphicMagic安装说明 GraphicMagic号称图片处理的瑞士军刀,可以处理包括图片压缩、补白、水印等等一系列的功能;GraphicMagic到官网下载,解压之后,需要在本地进行相应的 make install 处理; 此处列出一些注意事项; GraphicMagic 依赖的包包括:zlib , libpng(处理png图片) , libjpeg(处理jpg图片);所以在安装GraphicMagic之前要先安装以上三个包; zlib安装 rpm -qa | grep zlib 查看软件安装情况; zlib安装: 解压; 在目录下执行./configure --prefix=需要安装的目录 执行命令: make test或make make install 安装完成之后,为避免与系统提供的zlib包冲突,需要将zlib包加入当前用户的环境变量;步骤如下: 修改 .bash_profile文件 vi .bash_profile 并在其中增加以下环境变量: export LD_LIBRARY_PATH=zlib安装目录/lib:$LD_LIBRARY_PATH export C_INCLUDE_PATH=zlib安装目录/include:$C_INCLUDE_PATH export CPLUS_INCLUDE_PATH=zlib安装目录/include:$CPLUS

How to use jpeglib

左心房为你撑大大i 提交于 2019-12-10 12:22:40
问题 I'm trying to use jpeglib to write a jpeg file to my own, without use the pre-build functions like jpeg_compress etc etc, but writing headers and tables individually... And here there are a lots of problem... I'm using Windows and Visual Studio, so I tried to install the .exe file from gnuwin site and include in my code the 4 header files of the "include" folder, but when I try to call some functions like write_file_header, jpeg_stdio_dest etc etc, it says that there is a missing link, so I

Can't get PIL to support any images

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 11:05:10
问题 After installing PIL with pip install PIL under Ubuntu 11.10, the summary tells me "not available" on all items. I've read through several "answers" like http://obroll.com/install-python-pil-python-image-library-on-ubuntu-11-10-oneiric/ which essentially tells me the same thing: Install PIL after libjpeg. I still can't get it to work. (I'm a novice with ubuntu) Any ideas? Copy/Paste from the summary: -------------------------------------------------------------------- PIL 1.1.7 SETUP SUMMARY

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

风格不统一 提交于 2019-12-08 17:13:27
问题 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 -------------------------------------------------------------------- version 1.1.7 platform linux2 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) [GCC 4.5.2] -------------------------------------------------------------------- *** TKINTER support not available --- JPEG support available --- ZLIB (PNG/ZIP) support available ---

Lossless JPEG rotation during decoding with libjpeg

混江龙づ霸主 提交于 2019-12-08 14:48:26
I've got a simple C++ app that decodes JPEGs with libjpeg - however, some of the images it processes come out sideways! These input images have orientations baked in to the EXIF data by the camera, but it seems that during decompression, libjpeg isn't taking the orientation flag into account as many JPEG viewers do. Is there a way to get libjpeg to respect the orientation of the JPEG during decompression, or will I have to parse out this orientation tag and manually rotate the image? the transupp.h header in libjpeg defines an API for lossless rotation. Included is also, jpegtran.c, source

UIImageJPEGRepresentation compressionQuality vs other encoders

若如初见. 提交于 2019-12-08 13:50:30
问题 How does the compressionQuality parameter in UIImageJPEGRepresentation related to similar parameters in other encoders such as libjpeg or ImageMagick? When I try to use the same values in both ImageMagick and UIImageJPEGRepresentation I get totally different images sizes. I even tried WebP and it's size is much smaller that the UIImageJPEGRepresentation result. 回答1: You are likely to get smaller image sizes with ImageMagick because it is a desktop program that can utilize the higher computing

DCT coefficients changed after JPEG saved to ios photo library

久未见 提交于 2019-12-08 09:31:41
问题 There is a strange change when saving JPEG image to the iOS photo library. I don't know if I am doing something wrong. I'm using libjpeg-turbo to access JPEG images and then I modify DCT coefficients of the image. Modified image (just in DCT, nothing else) is saved in photo library. But after I open the saved image, DCT coefficients are not the same that I changed in the previous step. In detail, let me explain how I'm adding +1 to each DCT. I am using standard procedure from "example.c" of

Uploading a JPEG image via Django displays error

天涯浪子 提交于 2019-12-07 22:54:58
问题 I'm running a Django app inside a virtualenv on Ubuntu with NGINX/FastCGI and trying to upload a JPG image to the Django admin app. I'm getting this error: "Upload a valid image. The file you uploaded was either not an image or a corrupted image." I can upload a GIF image, so it's only JPEG that's causing the problem. Here's what I've tried so far: 1) Install libjpeg62-dev before PIL pip uninstall pil sudo apt-get libjpeg62-dev pip install pil At the end of the PIL install, I see: PIL 1.1.7