Display multiple .ps files on a single page
4 views (last 30 days)
Show older comments
This is a spinoff of another question, found here: https://au.mathworks.com/matlabcentral/answers/438024-combine-images-to-display-on-single-page
I need to be able to display multiple .ps images onto a single page. I have a code that works to show different sized images, but there is an annoying border that I can't get rid of.
figure
subplot(2,2,1);
imshow(img1,'Border','tight');
subplot(2,2,2);
imshow(img2,'Border','tight');
subplot(2,2,3);
imshow(img3,'Border','tight');
subplot(2,2,4);
imshow(img4,'Border','tight');
This code works, but requires me to reformat my .ps images into other image formats, such as .png, or .jpg. The easiest way to do this was online, but it is taking a while. Is there a way to display .ps images with or without reformatting them? I have looked around and I haven't found an answer except to do so online or in Ghostscript, both of which only do one at a time. I have several hundred of these annoying images to display.
Please help.
0 Comments
Answers (1)
Walter Roberson
on 7 Jan 2019
No, MATLAB cannot display postscript directly . postscript is a complete programming language that often draws the results through code rather than using pixels . postscript is not an image file format.
If you have a ghostscript executable then you can open multiple operating system shell each invoking ghostscript and process multiple files at aa time that way.
0 Comments
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!