Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vips pyramid builder also available via python api? #58

Closed
fbuchinger opened this issue Mar 24, 2013 · 4 comments
Closed

vips pyramid builder also available via python api? #58

fbuchinger opened this issue Mar 24, 2013 · 4 comments

Comments

@fbuchinger
Copy link

Is the image pyramid builder vips dzsave also available via the python interface or do i have to invoke the vips binary for this functionality?

I am asking this because I plan to modify (e.g. blur, color adjust) and tile the image via the python api. if I can do everything within python this would save me from dumping out the VImage to the file system for the tile generation.

@jcupitt
Copy link
Member

jcupitt commented Mar 25, 2013

Hi, no, sorry, dzsave is part of vips8 and there's no vips7 wrapper for it. The supported vips Python binding is vips7 only.

You could try writing a tiny bit of C to call vips_dzsave():

http://www.vips.ecs.soton.ac.uk/supported/7.32/doc/html/libvips/VipsForeignSave.html#vips-dzsave

I'll have a look at a patch to add a vips7 interface.

@fbuchinger
Copy link
Author

thanks for the feedback! I leave this issue open until you commit the patch?

@jcupitt
Copy link
Member

jcupitt commented Apr 2, 2013

OK, I'm working one something else right now, but I'll look at this soon.

@jcupitt
Copy link
Member

jcupitt commented Jun 11, 2013

I've added a vip7 interface to the pyramid builder:

jcupitt@55bfa92

You can call it from Python too. You have to embed options in the filename though, sadly.

I'll be part of 7.34 due in a week or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants