I'm trying to create an animation out of multiple postscript figures but the resulting animation is very small. When I check the properties of the figures I see that the paper size is small. If I manually increase the size (e.g. using GIMP) the animation looks good. The problem is that I have many files and I would like to do this automatically. Alternatively fix when rendering the animation.
The animation is done either using imageio in python (1) or convert directly in the terminal (2). Both give similar results.
(1)
import imageio
images = []
for frame in frames:
f = 'Animate/morph'+str(frame)+'.ps'
images.append(imageio.imread(f))
imageio.mimsave('animation.gif', images, duration = 0.5)
(2, e.g.)
convert Animate/morph264.ps -gravity center -resize 792x612\! test.ps
I have also tried the following ghostscript that rescales the size of the ps but the actual image is still small (located in the lower left corner)
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dSAFER -dCompatibilityLevel="1.5" -dPDFSETTINGS="/printer" -dColorConversionStrategy=/LeaveColorUnchanged -dSubsetFonts=true -dEmbedAllFonts=true -dDEVICEWIDTHPOINTS=500 -dDEVICEHEIGHTPOINTS=500 -dAutoRotatePages='/PageByPage' -dFIXEDMEDIA -dPDFFitPage -sOutputFile='test.ps' -f 'Animate/morph264.ps'
Is there some way of doing this without going mad...?