Just saw the _scale_image function in image_writer....ignore my request.<br><br><div class="gmail_quote">On Tue, Dec 14, 2010 at 10:44 AM, Sam Skillman <span dir="ltr"><<a href="mailto:samskillman@gmail.com">samskillman@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>+1 </div><div><br></div>Works on my custom OSX 10.6 yt setup (own install of numpy, matplotlib, freetype I think, etc).  I think this will be a really nice addition.  <div>

<br></div><div>One thing that might be nice as well is to instead of raising an error for the type not bing na.unit8, we could convert it like what is done in write_bitmap.  That way if I were to read in a png with pylab.imread I could then just directly annotate the image that I read in.  I've been playing around with a class that reads in all of the image (in this case volume renders) in a directory, enhances them (gets rid of flicker), and writes them back out to a new directory.  That way the original image from the vr is kept intact before playing movie-maker and adjusting the images.  Anyways, that's just a request and I can deal with it if it presents problems.</div>


<div><br></div><div>Looking forward to it passing the tests!</div><div><br></div><div>Sam<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Tue, Dec 14, 2010 at 9:26 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">Hi all,<br>
<br>
I wrote up a very simple wrapper to do textual annotations directly<br>
using Freetype.  This allows, for instance, adding annotations to<br>
image buffers created by fixed resolution buffers, volume rendering,<br>
etc.  It should, eventually, also allow us to make a subset of plots<br>
with colorbars without using Matplotlib.<br>
<br>
Anyway, I've already added freetype to the yt build system.<br>
Additionally, matplotlib requires it.  So it *should* already exist on<br>
the system, although I've had to add some guesswork to get the yt<br>
build system (not the install script) to link against the freetype<br>
wrappers.<br>
<br>
I've bundled up the changes and attached them to this email.  It would<br>
be amazing if I could have a couple people try unbundling these<br>
changes, updating to hash 2f9479b4f1dd, re-cythonizing and attempting<br>
a build.  This process should look something like:<br>
<br>
hg unbundle freetype.hg<br>
hg up -C 2f9479b4f1dd<br>
cython yt/utilities/amr_utils.pyx<br>
python setup.py build_ext -i<br>
<br>
Testing this will help to make sure that we can push the new freetype<br>
module out into the wild, and use it more generally for annotating<br>
volume rendering, etc etc.  You can see the (documented!) function as<br>
"annotate_image" which should be in mods, and which accepts a bitmap<br>
(as, for instance, output by write_image) as input.<br>
<br>
Any reports of success/failure would be great.  Thanks!<br>
<br>
-Matt<br>
<br></div></div>_______________________________________________<br>
Yt-dev mailing list<br>
<a href="mailto:Yt-dev@lists.spacepope.org" target="_blank">Yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
<br></blockquote></div><br>
</div>
</blockquote></div><br>