Question about saving jpg file
- From: "Kevin " <khung@xxxxxxxx>
- Date: Mon, 21 Jan 2008 19:48:01 +0000 (UTC)
Hi everyone,
I am doing a simple exercise of reading jpg file into Matlab
and writing it back to jpg file.
After writing the matrix to a new jpg file, the file size is
different. This is what I do:
A = imread('original.jpg');
imwrite(A, 'new.jpg', 'quality', 100);
The original jpg file is about 2 MB and the new jpg file is
about 3 MB.
I also tried this,
imwrite(A, 'new.jpg', 'quality', 75);
Now the new jpg is much smaller and about 500 kB.
So my question is that is it possible to write an image back
to file which is exactly identical to the original jpg file?
Thanks.
.
Relevant Pages
- RE: Peculiar slow jpg download from website with adodb.stream over ssl on IE
... I would like to confirm my understanding of your issue. ... writing a jpg file to the client using server side scripts with an SSL. ... As you said this might have something to do with the jpg file itself. ... (microsoft.public.data.ado) - Re: Exporting figures in Matlab
... the figure as a .jpg file from Matlab, the title of xaxis shows up ... the xaxis title does not fit into the figure. ... might be that Matlab will adjust the tick mark positions to some extent and that the margins are getting a bit too wide for my taste as the paper size is increased ... File are noticeably smaller and you do not have any of the nasty artifacts of jpeg. ... (comp.soft-sys.matlab) - Re: processing image in a specific region
... Because the image I want to process is a jpg file. ... photoshop) that has few function of image processing ... you need to tell matlab the location of the ... pixels you want to adjust, ... (comp.soft-sys.matlab) - Figure 1x1-exporting of image
... screen and I would like to export it to a PNG/JPG file. ... I have been working with Matlab for a couple of years and it really ... data plain and simply to a JPG file without any ... of NxM pixels? ... (comp.soft-sys.matlab) - how to close a window
... please tell me how I caqn close a window from matlab. ... how can i close a jpg file which is open on the ... monitor. ... (comp.soft-sys.matlab) |
|