iman, this question belongs on the newsgroup, but I will answer anyway.
Your error is that n is not an image, but just a string containing the image file name. You must load the image first:
[filename,folder] = uigetfile(...);
im = imread(fullfile(folder,filename));
axes(handles.axes1)
imshow(im)
imwrite(im,'myimage.jpg')
I use uigetfile to upload image from file in matlab GUI. I don't got any problem with this but when i try to save the image i got error, plez can someone help me.
this is my code
n=uigetfile({'*.jpg;*.tif;*.png;*.gif','All Image Files';... '*.*','All Files' },'Testing',...'C:\Users\norfadhilah\Application Data\Desktop\Testing');
axes(handles.axes1)
imshow(n)
imwrite (n,'myimage.jpg')
Comment only
26 Apr 2012
JPEG Compression
An example for jpeg compression and the restoration.
Thanks Ohad, some great stuff you have here. I've been trying out your code and I only really need to use the higher and lower compression qualities of 'image 8', which displays all the levels of quality. I can't seem to manipulate the code correctly to only use this method, section 1.8 i think, can anyone help with this? Thanks and all the best.
Doug and Andrew,
An idea: If displaying information on date and size was very important, perhaps you could use a colormap to shade the background of each file according to its size and/or date, and then only a scale (log scale for size?) would have to be included in the figure window.
Comment only