Sorry, this may or may not be a programming issue directly, but I'm trying to resize the screenshots with Imagemagick and Gimp to include them in the Beamer presentation, but this comes out even more rude than the resizing made by LaTeX .
For example, in Beamer, I might have a command to resize the image \includegraphics[width=.5\textwidth]{fig.png} . Using something like
\begin{frame} \message{width = \the\textwidth} \message{height = \the\textheight} \end{frame}
I got the \textwidth and \textheight in points (345.69548, 261.92444). So I have a script (in Python) that sends an Imagemagick system call:
'convert %s -resize % .6f@ resized_%s' % (f,a,f)
where a calculated as \textwidth*\textheight*0.5**2 , and f is the file name. When I go back to the Beamer presentation and add the modified shape, \includegraphics{resized_fig.png} , the size looks \includegraphics{resized_fig.png} good, but it's super-blurry. I also tried resizing in Gimp (using the GUI), but no luck ... help? Thanks...
source share