png to eps conversion
9 ビュー (過去 30 日間)
古いコメントを表示
I want to convert an image .png to .eps converstion.. Can you please suggest me the code..
I=imread('rp_noise.png');
imwrite(I,'rp_eps.eps','eps');
showing error ???Invalid input syntax or unrecognized format "eps"
Help me!
1 件のコメント
Rahul Singhal
2017 年 5 月 5 日
Hi,
Following code may help you to convert PNG images to eps (COLOUR)
fileName = 'FarmerStats'; % your FILE NAME as string
A = imread(fileName,'png');
set(gcf,'visible','off') %suppress figure
image(A);
axis image % resolution based on image
axis off % avoid printing axis
set(gca,'LooseInset',get(gca,'TightInset')); % removing extra white space in figure
saveas(gcf,fileName,'epsc'); % save as COLOR eps file
採用された回答
Wayne King
2011 年 11 月 13 日
Make the plot that you want in MATLAB and save the plot as an .eps file
print -depsc figure.eps
or the appropirate -deps option, see the help for print.
0 件のコメント
その他の回答 (2 件)
Walter Roberson
2011 年 11 月 13 日
imwrite() cannot create eps. Use print(), or use Oliver's File Exchange Contribution "export_fig".
0 件のコメント
Daniel Shub
2011 年 11 月 13 日
You realize that png is a bitmap image format and eps is traditionally used for vector graphics. While you can embed a bitmap image into it, it is unclear why you would want to convert a bitmap graphic into a vector graphic.
参考
カテゴリ
Help Center および File Exchange で Printing and Saving についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!