On Thu, 14 Oct 2010, Brian Wedde wrote:
Is there any way to get access to the data about external figures? I would like to know the pixel height/width of the actual image.
From one of my private modules:
\useexternalfigure[cnp:name][\cut!n!paste!parameter\c!name]% Is this really needed? \getfiguredimensions[cnp:name]% \edef\cut!n!paste!NOfpages {\noffigurepages}% % MkII returns dimensions in pt, MkIV returns in sp % which causes metapost to blow up. So, I use \dimexpr to convert % sp to pt. \edef\cut!n!paste!figurewidth {\the\dimexpr\figurenaturalwidth }% \edef\cut!n!paste!figureheight{\the\dimexpr\figurenaturalheight }% Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________