Commit Graph

99 Commits

Author SHA1 Message Date
Carsten Haitzler 64a736ce7a break out if no footer
SVN revision: 5532
2001-10-20 01:46:46 +00:00
Tom Gilbert cc664b4b4a Patch from Brian Lindholm <lindholm@aol.com>
Fixes png loader to cope with grayscale pngs, and also cleans up the loader
significantly. Many thanks.


SVN revision: 5504
2001-10-16 23:58:53 +00:00
Carsten Haitzler 7ba6529191 working offline... :)
SVN revision: 5370
2001-09-24 21:11:53 +00:00
Carsten Haitzler ae28a02941 db loader out of imlib2...
SVN revision: 5175
2001-08-16 09:48:23 +00:00
Tom Gilbert 39c1c0eeda ewps!
SVN revision: 5126
2001-08-12 14:35:41 +00:00
Tom Gilbert f537ac14e3 er no
SVN revision: 5124
2001-08-12 13:45:47 +00:00
Tom Gilbert f2ba676428 safer
SVN revision: 5123
2001-08-12 13:45:32 +00:00
Tom Gilbert ab067f4fc5 This is what I meant.
I have tested:

feh test:image.jpg                                     WORKS
imlib2_view e/data/icons/image/png.db:/icon/clicked    WORKS

I have tested saving with geist too and that works.

The patch is bigger than it would have been because I had to revert some of
raster's attempt. There is more debris left over (unused functions and
params etc) but I won't clean all that out until people have checked out
this and are happy.

I might make something like imlib_get_real_filename available in the public
API. So that apps (like feh) that use stat() that do their own error checking
can also do the right thing, but this is a separate issue and not totally
necessary.


SVN revision: 5122
2001-08-12 13:41:11 +00:00
Carsten Haitzler f5a26225a1 oops - chekc for keys and real files first
SVN revision: 5083
2001-08-10 09:05:02 +00:00
Carsten Haitzler 0564389a26 virtualize real file and key splitting nicely into image data struct.
now we escpae literal colons with double colons. it's documented too. (this
was easier to do as i also have to do it for ssving files and you cant stat
to see if a file exisit fi you havent saved it yet)


SVN revision: 5080
2001-08-10 08:35:05 +00:00
Carsten Haitzler 2523237b33 beat me silly. i forgot to allocate the memory... :) yay.. fixed :)
SVN revision: 4998
2001-07-28 00:53:41 +00:00
Carsten Haitzler 76b69f298e oops and a leak in the png loader.. and fix a potential leak in the jpeg
saver for when things go awry.


SVN revision: 4308
2001-03-04 04:33:59 +00:00
Carsten Haitzler 22c26c8c2b errr oops - aleak.. fix fix fix :)
SVN revision: 4307
2001-03-04 04:17:15 +00:00
Platon Fomichev 8ed94c80d8 First preview of gzip & bzip2 loaders
SVN revision: 4159
2001-01-27 21:59:45 +00:00
Carsten Haitzler 71479dd189 how the HELL did that 8 get there and things still compile?
SVN revision: 4145
2001-01-23 23:52:09 +00:00
Platon Fomichev 592c94bc6c OS/2 binary open fix, I think in UNIX we can safely use "O_BINARY" too
SVN revision: 4119
2001-01-14 19:43:54 +00:00
Platon Fomichev b55b892198 OS/2 fixes
SVN revision: 4113
2001-01-11 22:47:32 +00:00
Carsten Haitzler cea6638e08 * up version to 1.0.1 - will do minor release real soon.
* fix build so loaders build if u have no imlib2 installed
* fix requires and buildrequires in spec file for freetype & edb to be correct


SVN revision: 4105
2001-01-07 22:02:08 +00:00
Michael Jennings 4a57d3b10a So fix it, don't just get rid of it. =P
SVN revision: 4103
2001-01-06 20:09:06 +00:00
Mandrake 7c8c8f0a7d this doesn't work at all.
libtool: link: `-L../src' cannot specify a relative directory


SVN revision: 4102
2001-01-06 19:57:36 +00:00
Maher Awamy 08afe64133 Made png.so and jpeg.so link against Imlib2 when building, this makes the perl
bindings problem with undefined symbols for __imlib_GetTag disappear since those
two loaders call that function to determine some image flags when saving.
Kick me in the butt if I am not supposed to do that but KainX said I should.
The differance in .so size is minimal, 30 bytes for png.so and 20 bytes for jpeg.so.


SVN revision: 4099
2001-01-06 08:41:00 +00:00
Till Adam 19e4e109ee ok, fix for the ascii ppm formats. They seemed to have the same problem.
This should be it now, provided the save in ppm format works as expected
which it seems to do from geist at least.


SVN revision: 4088
2001-01-03 21:42:10 +00:00
Till Adam 81a9725218 fix for the other binary versions in the pnm_loader. Could someone please
check if the ascii ones work right? I didnt test them. and test the binary
formats too while youre at it. Thanks :)


SVN revision: 4087
2001-01-03 21:23:45 +00:00
Till Adam b9aca90e0c small fix for the pnm loader. It didnt display the last two lines of a file.
Ive only corrected the 24bit RGB one. Ill do the others if raster doesnt
have a more elegant fix for this :).


SVN revision: 4070
2001-01-01 11:52:46 +00:00
Carsten Haitzler 571d51a852 masa's internationalization + x font support for imlib2 :)
SVN revision: 3980
2000-12-12 21:07:38 +00:00
Carsten Haitzler 63c17d1769 os/2 fixes :)
SVN revision: 3852
2000-11-11 00:18:58 +00:00
Tom Gilbert 2e758a7c94 jpeg and png should do the right thing with quality _or_ compression now
SVN revision: 3789
2000-10-30 00:58:02 +00:00
Tom Gilbert d1227691a0 png loader now pays head to images "quality" tag, just like the jpeg loader.
Now, the png lib takes values 1-9 for compression. I decided to standardise
loaders on a 1-100 quality value, and do some sums in the loader to convert
to 1-9 compression. That was you can set quality and not care what file
format is used. Sound reasonable?


SVN revision: 3772
2000-10-29 00:31:37 +00:00
Carsten Haitzler 14f104ac97 pnm loader more paranoid about pnm format checks
SVN revision: 3687
2000-10-21 21:47:10 +00:00
Carsten Haitzler d65d4b3460 paparnoid lseeks & fseeks in tiff loader due to bsd bugginess :)
SVN revision: 3527
2000-09-19 16:24:20 +00:00
Carsten Haitzler fcdd68dc7e work under bigendian again
SVN revision: 3526
2000-09-19 16:11:12 +00:00
Tom Gilbert b9f5dca00f quick warning hunt
SVN revision: 3500
2000-09-17 03:07:45 +00:00
Carsten Haitzler 064b8e2e81 we can add them back in... conditions put elzewhere
SVN revision: 3424
2000-09-12 23:22:54 +00:00
Carsten Haitzler 45a68b7336 and make them build.......... PROPERLY!
SVN revision: 3423
2000-09-12 23:22:13 +00:00
Carsten Haitzler 74c2136de5 only build loaders if headres/libs are found - chheck for libs and note them
minimum requirements are jpeg, png and db loaders.


SVN revision: 3415
2000-09-12 19:30:37 +00:00
Carsten Haitzler cf0833cfcb fix big endian code :)
SVN revision: 3391
2000-09-11 20:01:26 +00:00
Carsten Haitzler 8b4280d552 dont need -ldb anymore
SVN revision: 3365
2000-09-09 02:33:25 +00:00
Carsten Haitzler d35f3a64d8 no debugging printf
SVN revision: 3318
2000-09-05 01:48:34 +00:00
Carsten Haitzler 2fe8f410e5 db loader/saver needs edb now - much better! :)
SVN revision: 3317
2000-09-05 01:25:01 +00:00
Michael Jennings f16c92658f Miscellaneous fixes I ran across while doing the colormod stuff. One of
which fixes a seg fault bug.


SVN revision: 3243
2000-08-23 05:02:03 +00:00
Michael Jennings 8a042f014f Some silly goose decided that these files should #include Imlib2.h. NONE
of them should include Imlib2.h.  In fact, nothing in the Imlib2 code
should, but if it's absolutely necessary, make sure the local one is found
before the system-wide one.


SVN revision: 2915
2000-07-13 03:45:15 +00:00
Christian Kreibich 00dcd44c89 Bye bye XCF loader. Apparently I stepped on some Gimp people's feet
with it, because of licensing issues. I guess I'll be talking to Raster
next week what we'll do with the loader. Hope this makes us friends
with the Gimp developers again.


SVN revision: 2888
2000-06-25 14:46:38 +00:00
Christian Kreibich 94c4ad783c Ahem. Of course the load fails when you can't open the file :o)
SVN revision: 2853
2000-06-22 11:22:42 +00:00
Christian Kreibich e9746c22f2 I don't know if the loader has endianness issues
(I guess it does), but this should definitely
work better.


SVN revision: 2848
2000-06-21 16:36:40 +00:00
Christian Kreibich af590f9221 An XCF loader. Currently it can handle layers, layer offsets, layer
opacity, layer masks, and merging layers in the default mode
(simply "looking" through all the layers). The other layer modes
are missing right now (I hardly ever use anything other than "Normal"
anyway, but that's just me of course).

If you load an image as /path/to/file:<layer number> only the
specified layer is displayed, at the defined offset in the image.
Try this with imlib2_view since it ignores file loading errors.
Passing parameters to the loader will have to be handled better
(or did I miss someting?) but the loader can basically return
layers selectively.


SVN revision: 2847
2000-06-21 14:23:18 +00:00
Carsten Haitzler 8ae5e31dd9 patch to fix loader to handle non line-feed header pnm's :) and ascii too.
SVN revision: 2783
2000-06-15 15:34:19 +00:00
Carsten Haitzler a489b0932c fix endianess problem with loader
SVN revision: 2777
2000-06-12 06:39:20 +00:00
Carsten Haitzler 15a14bb4c1 oooooooh look at that.. it now supports compressed image data in the db
SVN revision: 2756
2000-06-05 23:59:20 +00:00
Carsten Haitzler 73068c1e54 IT WORKS! :)
SVN revision: 2755
2000-06-05 22:28:18 +00:00
Carsten Haitzler 03443b4e9e shoudl in theory handle locks better....
SVN revision: 2754
2000-06-05 18:19:37 +00:00