I have several 9x11 GIF images that I wish to concatenate. Can someone write for me or explain how to make and algorithim that takes the raw binary (hex) data for the images files in, and outputs the raw binary (hex) data of the concatenated image file.
I've tried, but somehow the pallete gets majorly screwed up and the header information row gets read as a line of pixels....
You're programming in Python?
Use PHP. GD2 library.
I'm not sure why you use single digit images in the first place.
I want to do this in Python
I use signle digit images because the only file-writing I know of is writing bits and bytes. I can copy-paste the binary for a single-digit image easily. there is a module called imageop, but im not sure it it includes support.
Yeah, all it does is things like crop and grayscale to binary conversion.
well, isnt the header a fixed size?
?? I've been able to more or less get what I want but the header occurs once like it should but gets read as a pixel row.
Doodle77(sorry, me and m.r.bob use the same computers
:
ok... these images are all the same size, wihich is pretty small, since its so small you can put the whole file into a string, and slice away the header, then concatenate the strings, then add the correct header.
That won't do it. By the way the byte structure works, that would do this:
Image 1: 2
Image 2: 5
would become
5
2
not
25
I am trying to do that, slicing each row of pixels as a string and adding.
How do you input an image as a data type then? I tried the example on fetching the width of an image and I couldn't get it to work.