Simple image upload libraries

I have an application that uses this library (actually a direct port in D ) for some image processing. I am looking for other libraries of a similar style to load other types of files.

Things I need / need:

  • No loss.
  • Simple C API.
  • Loads data into raw pixel buffers.
  • Open source (how can I get the source files and compile them for my own use, in addition, licensing does not matter)

Does anyone know anything like this?

+3
source share
8 answers

devIL SDL_Image . Derelict .

:

+2

PNG: LodePNG library

C/++: http://members.gamedev.net/lode/projects/LodePNG/

D : www.dsource.org/projects/scrapple/wiki/LodePngLibrary

+3

, libpng, .

, - .

+1

imageMagick (http://www.imagemagick.org/script/index.php) . , .

, , , .

GPL. ( , )

+1

gdimage. , , , PHP.

0

, Netpbm / PPM, / .

PPM :

P6
800 600 255
# followed by 800x600x3 bytes of values between 0 and 255, i.e.
\xFF\x00\x00\x80\x80\x00\x00\xFF\x00\x00\x80\x80\x00\x00\xFF...
# but not escaped

:

P3
800 600 255
# followed by 800x600x3 decimal numbers between 0 and 255, i.e.
255 0 0  128 128 0  0 255 0  0 128 128  0 0 255  ...
0

I think SOIL (a simple OpenGl image library) is great for your description. It has many formats, iirc jpg code is even ported from the same source as yours.

0
source

Source: https://habr.com/ru/post/1727997/


All Articles