Open bbphd opened 10 years ago
Hi, sorry, I don't have a 10.4 machine, I can't really help. The binary is intel, I guess you have an intel machine?
You could try an older version. I think 7.22 is the oldest on the site at the moment:
http://www.vips.ecs.soton.ac.uk/supported/7.22/osx/
To get the command-line, install via homebrew:
http://www.vips.ecs.soton.ac.uk/index.php?title=Build_on_OS_X#Homebrew
I don't know if homebrew still supports 10.4 though. You would need the dev tools.
Once you have it installed, "man vips" should introduce the command-line. All the APIs are the same, so you can just use the C docs.
http://www.vips.ecs.soton.ac.uk/supported/current/doc/html/libvips/
For example, this operation:
http://www.vips.ecs.soton.ac.uk/supported/current/doc/html/libvips/libvips-arithmetic.html#vips-add
Becomes
$ vips add in1.jpg in2.jpg out.jpg
Try vips add
with no arguments to see a summary.
$ vips add
usage:
add left right out
add two images
where:
left - Left-hand image argument, input VipsImage
right - Right-hand image argument, input VipsImage
out - Output image, output VipsImage
operation flags: sequential-unbuffered
add: too few arguments
Thanks! I'll just run on linux then. FYI the wiki says OSX 10.4 is supported I think. I found the batch_crop command which is a nice start for me, but alas it seems to run slow even to just extract the top few rows of pixels from one 1Gb tiff file. Would any other interface be much faster?
On 5/9/14, John Cupitt notifications@github.com wrote:
Hi, sorry, I don't have a 10.4 machine, I can't really help. The binary is intel, I guess you have an intel machine?
You could try an older version. I think 7.22 is the oldest on the site at the moment:
http://www.vips.ecs.soton.ac.uk/supported/7.22/osx/
To get the command-line, install via homebrew:
http://www.vips.ecs.soton.ac.uk/index.php?title=Build_on_OS_X#Homebrew
I don't know if homebrew still supports 10.4 though. You would need the dev tools.
Once you have it installed, "man vips" should introduce the command-line. All the APIs are the same, so you can just use the C docs.
http://www.vips.ecs.soton.ac.uk/supported/current/doc/html/libvips/
For example, this operation:
http://www.vips.ecs.soton.ac.uk/supported/current/doc/html/libvips/libvips-arithmetic.html#vips-add
Becomes
$ vips add in1.jpg in2.jpg out.jpg
Try
vips add
with no arguments to see a summary.$ vips add usage: add left right out add two images where: left - Left-hand image argument, input VipsImage right - Right-hand image argument, input VipsImage out - Output image, output VipsImage operation flags: sequential-unbuffered add: too few arguments
Reply to this email directly or view it on GitHub: https://github.com/jcupitt/nip2/issues/38#issuecomment-42711703
10.4 ... if you build yourself from source.
Yes, cropping tiffs is slow at the moment, unfortunately, vips has to decode the whole image. It might speed up again next version.
Thanks for the info! Do you know which 16 bits per color formats would be fast? png? Or is there an older version I can build that is fast on tiff? I just got the latest source to make on linux.
On 5/9/14, John Cupitt notifications@github.com wrote:
10.4 ... if you build yourself from source.
Yes, cropping tiffs is slow at the moment, unfortunately, vips has to decode the whole image. It might speed up again next version.
Reply to this email directly or view it on GitHub: https://github.com/jcupitt/nip2/issues/38#issuecomment-42718824
Tiled TIFF is very fast. It's a true random-access format, so vips can pull out small areas very quickly.
Convert to tiled tiff like this:
$ ls -l summer8.tif
-rw-r--r-- 1 john staff 409938116 19 Dec 2012 summer8.tif
$ time vips extract_area summer8.tif tiny.tif 0 0 10 10
real 0m2.449s
user 0m0.164s
sys 0m0.388s
$ vips copy summer8.tif summer8_tiled.tif[tile]
$ time vips extract_area summer8_tiled.tif tiny.tif 0 0 10 10
real 0m0.018s
user 0m0.010s
sys 0m0.007s
Hi John, Appreciate your help! I got vips to install in linux, but when I do $ vips similarity junk.png junk.tif VipsForeignLoad: "junk.png" is not a known file format But it's the same with a tif file, generated by a different program. Both files open in imagemagick.
On 5/10/14, John Cupitt notifications@github.com wrote:
Tiled TIFF is very fast. It's a true random-access format, so vips can pull out small areas very quickly.
Convert to tiled tiff like this:
$ ls -l summer8.tif -rw-r--r-- 1 john staff 409938116 19 Dec 2012 summer8.tif $ time vips extract_area summer8.tif tiny.tif 0 0 10 10 real 0m2.449s user 0m0.164s sys 0m0.388s $ vips copy summer8.tif summer8_tiled.tif[tile] $ time vips extract_area summer8_tiled.tif tiny.tif 0 0 10 10 real 0m0.018s user 0m0.010s sys 0m0.007s
Reply to this email directly or view it on GitHub: https://github.com/jcupitt/nip2/issues/38#issuecomment-42734466
If I open a .v file and use vips to write .tif it gives same error but VipsForeignSave.
On 5/16/14, Bill Bruno wbruno@gmail.com wrote:
Hi John, Appreciate your help! I got vips to install in linux, but when I do $ vips similarity junk.png junk.tif VipsForeignLoad: "junk.png" is not a known file format But it's the same with a tif file, generated by a different program. Both files open in imagemagick.
On 5/10/14, John Cupitt notifications@github.com wrote:
Tiled TIFF is very fast. It's a true random-access format, so vips can pull out small areas very quickly.
Convert to tiled tiff like this:
$ ls -l summer8.tif -rw-r--r-- 1 john staff 409938116 19 Dec 2012 summer8.tif $ time vips extract_area summer8.tif tiny.tif 0 0 10 10 real 0m2.449s user 0m0.164s sys 0m0.388s $ vips copy summer8.tif summer8_tiled.tif[tile] $ time vips extract_area summer8_tiled.tif tiny.tif 0 0 10 10 real 0m0.018s user 0m0.010s sys 0m0.007s
Reply to this email directly or view it on GitHub: https://github.com/jcupitt/nip2/issues/38#issuecomment-42734466
Ooop, sorry, I didn't reply.
If you built from source, you probably didn't have the tiff / jpeg / png development packages installed. You need to have libtiff-dev around when you configure vips. Check the summary printed at the end of vips configure.
You can just also install vips from the package manager on linux, it's simpler than building yourself.
7.40 has fast tiff cropping back again.
Hi I'm on linux but not x86 so often need to compile...
On a different note, it is my impression that the available free de-screening filters are not very good. Do you happen to know what is theoretically the best approach?
On 10/1/14, John Cupitt notifications@github.com wrote:
Ooop, sorry, I didn't reply.
If you built from source, you probably didn't have the tiff / jpeg / png development packages installed. You need to have libtiff-dev around when you configure vips. Check the summary printed at the end of vips configure.
You can just also install vips from the package manager on linux, it's simpler than building yourself.
7.40 has fast tiff cropping back again.
Reply to this email directly or view it on GitHub: https://github.com/jcupitt/nip2/issues/38#issuecomment-57434124
Ah OK. It's probably still in your package manager though, I don't know of many linuxes which don't have vips.
Try installing libjpeg-dev, libtiff-dev and libpng-dev (or whatever the names are on your system) and configuring vips again.
installs happily but nothing appears when I open the nip2 app.
I would settle for command line but it is not clear to me how to install that on a OSX machine (without development tools on it) or access from nip2 install. I have everything working on a linux box, but also unclear where begin to learn command line interface.