Commit Graph

1460 Commits

Author SHA1 Message Date
John Cupitt efe1a19598 functional vipsoperation
vipsoperation now mostly creates output objects for you
2011-05-19 13:48:09 +01:00
John Cupitt b6185af194 more new API hackery
added some notes ot the TODO on a more functional approach
2011-05-19 09:22:48 +01:00
John Cupitt 5b6ee532c4 oop TODO 2011-05-18 11:06:01 +01:00
John Cupitt 79a7a37d71 create output images in _build()
new idea: output image get made in _build(), we copy them out after
calling the operation's build, see TODO

vips_image_new() param removed, it just always makes "p" images now
2011-05-18 11:03:31 +01:00
John Cupitt c4804b6fb3 argh 2011-05-17 14:45:51 +01:00
John Cupitt dd6f0e8b4d sizealike everywhere
all ops now sizealike (I think) and docs are updated to match
2011-05-17 13:05:45 +01:00
John Cupitt 9afe09a68f better bool CLI options 2011-05-17 11:35:29 +01:00
John Cupitt 0c1034de44 vips7 has sizealike as well 2011-05-16 17:34:00 +01:00
John Cupitt bc4accfc48 added sizealike
binary.c now does sizealike, so images no longer have to match exactly
in size for binary operations
2011-05-16 17:25:26 +01:00
John Cupitt 6cb6d2289b new CLI done
the new cli interface is done, try "vips add a.jpg b.jpg out.jpg", or
"vips add".
2011-05-16 17:10:08 +01:00
John Cupitt 8c6697c40a misc CLI hackery sync 2011-05-16 08:31:55 +01:00
John Cupitt 1f3f20ee4e new cli working
some final testing needed
2011-05-13 14:47:23 +01:00
John Cupitt 825280b365 more cli hackery
almost there now, parsing strings to standard types
2011-05-13 10:08:53 +01:00
John Cupitt 860a04a882 add optional args for testing
arithmetic now has optional bool and im args for testing operation
interfaces
2011-05-12 11:02:19 +01:00
John Cupitt 81b68ec979 rename arith args
args should be nmaed without hypens, since they may become variable names
2011-05-12 10:36:28 +01:00
John Cupitt 2a66c50410 mostly working 2011-05-11 22:07:30 +01:00
John Cupitt 67df101545 more command-line interface
more hacker ... this time a better way to do optional args
2011-05-11 14:51:47 +01:00
John Cupitt db48961c46 todo updates 2011-05-09 18:28:21 +01:00
John Cupitt 03d54dd099 im_conv() bug fixed
there was a typo in overflow estimation which could cause vips to use
the vector path when it should not, resulting in errors
2011-05-09 16:56:41 +01:00
John Cupitt e92f5ff353 README updates 2011-05-08 10:59:07 +01:00
John Cupitt 691893f31c updated German translation
new German translation, thanks Chris, tiny change to jpeg2vips
2011-05-07 15:11:01 +01:00
John Cupitt 8b10aa2fe0 magick notes 2011-05-02 18:02:41 +01:00
John Cupitt daf915fafb added vips_image_get_data()
something to get the pixel data pointer
2011-05-01 11:32:59 +01:00
John Cupitt ec56a691dc oops 2011-05-01 11:07:19 +01:00
John Cupitt 0a2ef6e8c5 bufjpeg2vips has a header_only param
im_bufjpeg2vips() has header_only, meaning just read width/height/etc.
2011-05-01 11:02:31 +01:00
John Cupitt e8a78916a3 add support for palette mono images
search the colormap for R==G==B and output mono in this case

there is a tiff extension for INDEXED images, but no one seems to use it
2011-04-21 12:01:37 +01:00
John Cupitt 620c02a833 cleanups
small tidies
2011-04-21 09:57:04 +01:00
John Cupitt 40ee1823e5 oops jpeg read
the recent jpeg read change had a couple of left-over variables
2011-04-21 09:56:25 +01:00
John Cupitt f13bf34ce3 add n-bit palette tiff read
The tiff reader can do 1, 2, 4, 8 bits per sample palette read.
Greyscale palette images always come out as colour, I'm not sure how to
fix this. Perhaps I have to search the palette and see if r==g==b?
2011-04-21 09:53:02 +01:00
John Cupitt b275f1dd26 started adding new CLI interface
Started hacking on the thing to let you call operations from the
command-line. The target syntax is something like:

	add a b c

where a, b, c are the required parameters. Optional params may be appended to
the operation name, eg.

	add{saturated=true} a b c

Required params which are subclasses of VipsObject may themselves have
required and optional params, eg.

	affine in.v out.v bilinear{12,sharp=true} 0 1 1 0 0 0
2011-04-20 17:41:55 +01:00
John Cupitt c4f5c71507 add im_bufjpeg2vips()
add a thing to open a jpeg from a memory buffer, handy for processing
thumbnails from exif data
2011-04-20 15:23:34 +01:00
John Cupitt 1a42e75f80 fix silly segv
If you called vips_object_map() before any vips objects had been
created, you got a segv.
2011-04-18 14:35:55 +01:00
John Cupitt f628b3c018 fix a docs typo
small doc improvement
2011-04-14 17:51:56 +01:00
John Cupitt 172b9f920e removed some binaries
oops, had these in by mistake
2011-04-14 09:39:16 +01:00
John Cupitt efcc0c20de need private array in VipsBinary
oops
2011-04-13 17:55:58 +01:00
John Cupitt e0d4ed89ff reorganise tools/ dir
The subdir in tools are no lonmger necessary. Also, remove ther old bin
links feature, not very useful anymore.
2011-04-06 12:06:32 +01:00
John Cupitt 42a9b2c3d0 rename arith header to avoid confusion 2011-04-05 21:36:00 +01:00
John Cupitt e3f18fb9d1 compiles phew 2011-04-05 17:02:12 +01:00
John Cupitt 75d209fd2c hackery
ops, half-done
2011-04-05 14:46:17 +01:00
John Cupitt e51c35b48a oops 2011-04-04 16:59:10 +01:00
John Cupitt ac461e5cc6 tiff read uint/int mixup
there was a uint/int mixup in the tiff reader causing problems with
tiff files written in single strips, thanks Bubba
2011-04-04 16:56:26 +01:00
John Cupitt 8d367998c6 VipsAdd works
done VipsAdd class and made an im_add() stub for compat
2011-04-04 15:46:57 +01:00
John Cupitt ce03da8c71 now compiles with new add.c
compiles, but not tested
2011-04-02 16:39:20 +01:00
John Cupitt 370641d25b stuff
oops argh
2011-04-01 15:11:59 +01:00
John Cupitt c8fc3e6c85 fix a progress crash
progress was not always being signalled on the right image in sink.c
2011-03-31 18:04:23 +01:00
John Cupitt db41b6ac4e add VipsOperation
abstract base class for all operations goes in
2011-03-29 12:12:20 +01:00
John Cupitt 8ddc805878 phew all done
iofuncs is now all on the vips_ namespace, and all revised, hopefully
2011-03-28 17:18:06 +01:00
John Cupitt 4120f7b296 cleanup util
just a few little things left, yay
2011-03-28 16:03:31 +01:00
John Cupitt c7b74f620f yet more cleanups
just util.c left now, woo
2011-03-28 14:57:43 +01:00
John Cupitt b13872f111 clean up sink
common up some stuff in the sinks
2011-03-28 14:08:42 +01:00