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.

JPEG is a common lossy compression method for digital images. Use this tag for questions about JPEG images using the image/jpeg MIME type.

See also , , and for other image file formats with JPEG in the name.

More information at the JPEG Wikipedia page.

4926 questions
2
votes
2 answers

Encoding a raw grayscale image to JPEG, changes in jpeg header

I am using a jpeg encoder library (Jpegant) for compressing raw YCbCr images to Jpeg in C. The library works fine for a YCbCr image which has separate Y Cb and Cr components. Also in the library, the Y, Cb, and Cr streams are encoded separately and…
Tarang Shah
  • 247
  • 4
  • 13
2
votes
3 answers

Some JPEG images are not working in IE

Hello, I have a press archive. The press archive displays automattically created thumbnails as links to a PDF document. This is what i get in IE 6, 7 & 8: alt text…
joar
  • 15,077
  • 1
  • 29
  • 54
2
votes
2 answers

How to convert motion jpeg frames from ip camera(rtp stream) to valid jpg image

I have received motion jpeg frames from a ip camera by RTP stream, and I try to convert the frames to valid jpg images. My camera model is Secubest PXN-0512P. It multicast the video of motion jpeg data by RTP stream. Now, I have decode the RTP…
user3801316
  • 23
  • 1
  • 5
2
votes
2 answers

Canvas images sent with data URI in request are corrupted after saving

Here is my javascript code: function common_save_project() { var image = common_screenshot(); $.ajax ( { type: "POST", processData: false, url: SITE_URL + "/system/xml/import/" + app_type + "/" + session_id + "/?prjid="…
AllisonC
  • 2,973
  • 4
  • 29
  • 46
2
votes
2 answers

How to install jpegrescan on Centos 6?

Id like to use jpegrescan on my Centos 6 linux install, both on its own and as part of Picopt. Unfortunately I can't seem to get it work with either. The Picopt instructions just vaguely say it needs to be "in path" though I'm not sure where that…
realdannys
  • 1,383
  • 1
  • 12
  • 18
2
votes
1 answer

Error while in a script for converting a folder of jpg to png for mac

I have a folder with a lot of jpg files and I want to convert them all into png. The thing is that I want to keep the name of the files. Let's see if you can help me. #! /bin/bash unset i2 for i in ./drawable/*.jpg do $i2 = ${i%%.jpg} sips…
mxmolins
  • 289
  • 2
  • 4
  • 10
2
votes
1 answer

Rotating JPEG Images using TSQL, is it possible?

A customer has a SQL Server 2008 R2 database where nearly all images were stored upside down. It is neither possible to patch the software nor write an external script using a SQL Server library to access until one to two weeks. The only possibility…
SakeSushiBig
  • 1,481
  • 2
  • 14
  • 20
2
votes
1 answer

How to make Boost::GIL work with PNG & JPEG IO?

Boost::GIL has almost perfect tutorial and manual. I find it troublesome to lack guide on building and using Boost::GIL work with PNG & JPEG IO. Does anyone have experience or have successfully did that? Please kindly advise! Thanks! EDIT: Answer…
Viet
  • 17,944
  • 33
  • 103
  • 135
2
votes
1 answer

Python socket sendall randomly fails

I have a simple script which transfers an image file from one machine to another, does image processing and returns a result as "dice count". The problem is that randomly the image received is partially grey. There seems no reason as to when the…
Anders_K
  • 982
  • 9
  • 28
2
votes
1 answer

Validating JPEG from byte array - specifically the APP segment

I am reviewing legacy code that handles different tpyes of images, including JPEG. The legacy code uses a 4 byte sequence to determine if a byte[] is a valid JPEG. Specifically: 0xFF 0xD8 0xFF and either 0xE0 or 0xE1. When I did my research I…
BigMac66
  • 1,528
  • 5
  • 19
  • 35
2
votes
1 answer

LibGD library is not working: crash when saving image

I've been seeking for JPG saving library for long time for c++, but i cant seem to get anything to work. Now i am trying use LibGD: What im doing wrong ? It seems to work, but the saving crashes. Code: ... #pragma comment(lib, "bgd.lib") #include…
Newbie
  • 1,593
  • 10
  • 35
  • 50
2
votes
1 answer

How can I mass-convert images with no color to grayscale?

I have a directory that contains a very large number of JPG images (scans of paper documents), which are all currently sRGB. Many but not all of them don't actually have color, or have color only as the background (e.g. colored paper or slightly…
Sai
  • 6,919
  • 6
  • 42
  • 54
2
votes
0 answers

Intermittent Parameter Not Valid when calling Image.FromStream

We have a website that allows clients to upload their own logos for co-branding. We resize the images so they are a standard width and height. 99% of the time this works fine but occasionally we get a "System.ArgumentException: Parameter is not…
Clak
  • 58
  • 5
2
votes
1 answer

How do I access and manipulate JPEG image pixels?

i have a jpg file. I need to convert it to pixel data and then change color of some pixel. I do it like this: NSString *string = [[NSBundle mainBundle] pathForResource:@"pic" ofType:@"jpg"]; NSData *data = [NSData…
user2032083
  • 313
  • 2
  • 4
  • 14
2
votes
1 answer

Image.FromFile why read in bitmap is faster than jpeg file

I'm using .net framework 4.0, System.Drawing.Image.FromFile to read in the bitmap and jpeg format images. using (Image img = Image.FromFile("image file path")) { } I put a stopwatch just to track the time taken, and it show me the result that take…
Bo5ku
  • 115
  • 1
  • 1
  • 7