[Yt-dev] Call for testing: Freetype module build system

Sam Skillman samskillman at gmail.com
Tue Dec 14 09:47:55 PST 2010


Just saw the _scale_image function in image_writer....ignore my request.

On Tue, Dec 14, 2010 at 10:44 AM, Sam Skillman <samskillman at gmail.com>wrote:

> +1
>
> 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.
>
> 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.
>
> Looking forward to it passing the tests!
>
> Sam
>
> On Tue, Dec 14, 2010 at 9:26 AM, Matthew Turk <matthewturk at gmail.com>wrote:
>
>> Hi all,
>>
>> I wrote up a very simple wrapper to do textual annotations directly
>> using Freetype.  This allows, for instance, adding annotations to
>> image buffers created by fixed resolution buffers, volume rendering,
>> etc.  It should, eventually, also allow us to make a subset of plots
>> with colorbars without using Matplotlib.
>>
>> Anyway, I've already added freetype to the yt build system.
>> Additionally, matplotlib requires it.  So it *should* already exist on
>> the system, although I've had to add some guesswork to get the yt
>> build system (not the install script) to link against the freetype
>> wrappers.
>>
>> I've bundled up the changes and attached them to this email.  It would
>> be amazing if I could have a couple people try unbundling these
>> changes, updating to hash 2f9479b4f1dd, re-cythonizing and attempting
>> a build.  This process should look something like:
>>
>> hg unbundle freetype.hg
>> hg up -C 2f9479b4f1dd
>> cython yt/utilities/amr_utils.pyx
>> python setup.py build_ext -i
>>
>> Testing this will help to make sure that we can push the new freetype
>> module out into the wild, and use it more generally for annotating
>> volume rendering, etc etc.  You can see the (documented!) function as
>> "annotate_image" which should be in mods, and which accepts a bitmap
>> (as, for instance, output by write_image) as input.
>>
>> Any reports of success/failure would be great.  Thanks!
>>
>> -Matt
>>
>> _______________________________________________
>> Yt-dev mailing list
>> Yt-dev at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20101214/ca0cfcf6/attachment.html>


More information about the yt-dev mailing list