I have an transparent png file(colored image not black and white).I want to resize this png file and save that with transparent background.but i cant save that with transparent background.file saved with dark background.
[im,map]=imread('image.png'); im=ind2rgb(im,map); im2=imresize(im,[200,200]); imwrite(im2,'image2.png');
in above code image2.png saved with black background and not transparent
Best Answer