Questions tagged [jpeg]

JPEG is a commonly used method of lossy compression for digital photography (image).

The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality. JPEG typically achieves 10:1 compression with little perceptible loss in image quality.

JPEG compression is used in a number of image file formats. JPEG/Exif is the most common image format used by digital cameras and other photographic image capture devices; along with JPEG/JFIF, it is the most common format for storing and transmitting photographic images on the World Wide Web.[citation needed] These format variations are often not distinguished, and are simply called JPEG.

The term "JPEG" is an acronym for the Joint Photographic Experts Group which created the standard. The MIME media type for JPEG is image/jpeg (defined in RFC 1341), except in Internet Explorer, which provides a MIME type of image/pjpeg when uploading JPEG images.

More information at Wikipedia page of JPEG

4653 questions
2
votes
0 answers

How to rewrite XMP XML in jpg file using Apache Sanselan library?

I want to write XMP to jpg. I use Apache Sanselan library. In the following code I'm trying to read XMP XML and write it again to the same file but get the exception(ImageReadException: Unexpected EOF.). File file=new File("./img/file.jpg");//input…
Alexey
  • 6,552
  • 8
  • 54
  • 92
2
votes
1 answer

converting bmp to jpg in java

How do you convert bmp to jpg in Java? I know how to use the ImageIO way but is there a much faster or better way of doing it? This is the ImageIO way of doing that I found on the web. `//Create file for the source File input = new…
Jeel Shah
  • 3,054
  • 15
  • 44
  • 68
2
votes
3 answers

Merging JPGs with GDI in C#

My scenario: I have one color background image JPG. I have one black text on white background JPG. Both images are the same size (height and width) I want to overlay the image with black text and white background over the color background image,…
Bryan Denny
  • 26,451
  • 32
  • 103
  • 124
2
votes
2 answers

put jpg data from xmlhttprequest into tag

here is some part of my code xmlhttp.open("GET", theUrl, true); document.imglive.innerHTML = ''; that don´t seem to work. i also tried document.imglive.src= xmlhttp.responseText; that…
Gobliins
  • 3,382
  • 12
  • 52
  • 97
2
votes
1 answer

how to stream jpeg frame from java client to python server

i am developing an android application wherein i have to send a frame in jpeg format allocated to a BufferedArrayOutputStream (baos variable in code). I convert this baos into a byte array to write into the socket. On the server side i would like to…
geekoraul
  • 2,449
  • 2
  • 19
  • 32
2
votes
1 answer

Graphics.TBitmap successfully decoded from a JPEG frame results in empty TDibSection after GetObject() call

I am decoding JPEG frames to Graphics.TBitmap objects using the FastJpeg library (jpegdec.pas). The decode works fine and I print the bitmap to file for visual inspection using the TBitmap.SaveToFile() method and it looks great. I then call…
Robert Oschler
  • 13,520
  • 17
  • 74
  • 209
2
votes
1 answer

PHP GD Edit Jpeg without re-compressing

Say I have a jpeg file and I want to set some pixels to a certain color. When I save the jpeg, I am losing color and I see aliasing around my new pixels, even if I set quality to 100. I know it's a lossy format, but I don't want to re-compress the…
Maverick
  • 2,981
  • 5
  • 23
  • 34
2
votes
1 answer

imagejpeg corrupted output

I'm stuck at a weird problem regarding imagepng() and similiar. Whatever I do, the output is disliked by my browser (and my desktop programs) and the image is considered corrupted. I've so far tried header('Content-Type:…
Robin Castlin
  • 10,808
  • 1
  • 23
  • 41
2
votes
0 answers

Trouble converting a JPEG encoded BITMAP into a Gdiplus::Bitmap object

I'm using c++ to do some image work and I'd like to be able to work with jpeg compressed files. The GDI+ library appears to have what I need, and specifically the Gdiplus::Bitmap::GetPixel() routine is what I'd ultimately like to use. There are…
Ultratrunks
  • 2,234
  • 4
  • 25
  • 46
2
votes
2 answers

imagejpeg(); not generating image on host server , working fine on localhost

I have this code which is supposed to generate a captcha image of random number , it's working fine on localhost but not on my hosting, Can anyone help please? Can someone tell me where am i going wrong ?
Arihant
  • 3,349
  • 13
  • 42
  • 77
2
votes
1 answer

PHP image uploader not working with Capital JPG extension

Thanks in advance. I have a php image uploader that I built, which is working just fine. However I tried uploading a .JPG extension image and it did not work. Please note I mean capital JPG and not lowercase jpg. .png, .jpg, .gif all work fine…
klye_g
  • 1,234
  • 6
  • 27
  • 48
2
votes
1 answer

Why are images not fully shown with my streaming app?

I've written a simple Node.js app that streams content (primarily for videos, but other stuff works too). It seems to work fine except with some jpegs, where the bottom of the image is not always displayed. Here's an example, with the bottom…
meloncholy
  • 1,962
  • 16
  • 15
2
votes
2 answers

How can I convert a WMF image to PNG or JPG on Windows using Perl?

By any chance is anyone aware of a Perl module that will allow a WMF image to be converted over to the PNG or JPEG format? I searched CPAN, but did not come across anything. Due to installation limitations, must be a Perl module and work on…
JustADude
  • 2,410
  • 6
  • 29
  • 42
2
votes
2 answers

Realtime BMP to JPG conversion in Delphi 7 using Paradox

Researching here and at Code News Fast, I've seen nothing on point to my problem. I have an app where a customer picture (a JvDBImage) is acquired through the clipboard from a third-party picture-taking program when the user clicks a button in my…
GM Mugford
  • 111
  • 2
  • 8
2
votes
1 answer

php Gmagick save jpeg quality

I can't find any property during save or work with Gmagick PHP extension. http://php.net/manual/en/book.gmagick.php How can I change JPEG quality in Gmagick?
sweb
  • 2,452
  • 3
  • 29
  • 44
1 2 3
99
100