Staredit Network

Staredit Network -> Computers and Technical -> Image Concatenation
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-08 at 18:08:12
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....
Report, edit, etc...Posted by RexyRex on 2005-10-12 at 00:58:04
You're programming in Python?
Use PHP. GD2 library. smile.gif

I'm not sure why you use single digit images in the first place. sad.gif
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-12 at 01:12:58
I want to do this in Python tongue.gif

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.
Report, edit, etc...Posted by Doodle77(MM) on 2005-10-12 at 21:48:11
there is a module called imageop, but im not sure it it includes support.
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-12 at 23:41:07
Yeah, all it does is things like crop and grayscale to binary conversion.
Report, edit, etc...Posted by Doodle77(MM) on 2005-10-13 at 11:08:55
well, isnt the header a fixed size?
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-13 at 18:52:03
?? 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.
Report, edit, etc...Posted by scwizard on 2005-10-16 at 13:40:43
Doodle77(sorry, me and m.r.bob use the same computers pinch.gif:
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.
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-16 at 16:16:17
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.
Report, edit, etc...Posted by RexyRex on 2005-10-19 at 20:54:04
I know your server supports it.
Conform. http://us3.php.net/manual/en/function.imagecopymerge.php

Yes, this is peer pressure.
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-19 at 22:16:32
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.
Next Page (1)