A Long Shot, But Might As Well Ask

I'm sure colouring table cells would be more efficient, I still don't understand why you would want to create a huge html file to represent an image though.
 
Cool project/challenge though.

The above + Ajax = 'dynamic locally-generated images' or 'DLGI'

The Ajax is the fun part. Real-time image manipulation. Well, I'm hoping, eh? :o :D

If all goes well, I hope to make it into a nice .dlgi format for the web. The idea is that an image, can be a lot more than a static visual 'thing' - it can be a dynamic user-manipulated locally-generated 'object', in real-time.

I hope. Haha.
 
You do realise that given the sample CSS you posted that for a 640x480 image it would generate a CSS file that's over 42 megs?

Yeh, filesize was something I was worrying about. :p :D

It's all just a project at the moment, and I hope to find methods to overcome any problems I might face. Like 42MB image sizes. :p
 
I know. As the generated content is HTML/CSS, it will be that which is manipulated without the need to refresh the page. I weren't talking about JavaScript effects. :p

Good ;)

Btw, I did only what you first asked for in that program. It doesn't record the original dimensions of the image or output the colour values as CSS; just the raw hex values separated by spaces.
 
Good ;)

Btw, I did only what you first asked for in that program. It doesn't record the original dimensions of the image or output the colour values as CSS; just the raw hex values separated by spaces.

Yeh, I just noticed this. I've done exactly the same in PHP, so I think I'll stick with that. I just need to add an RGB > HEX conversion then stick it in a loop and create the imagename.php/relative.css and relevant folders. Then I can add the Ajax and make the image editable.

I guess it'll be like a web-based amateur Photoshop, with 1 or 2 tools at first. My plan is to use PHP to edit the hex values, thus allowing the user to edit the hue, saturation, brightness, etc of an image overall. Image size is going to be a huge issue though, I think. Especially with larger images.

The idea is that no one has to install software or plugins to perform the most basic of tasks online. You can just upload an image and crop, resize, brighten or whatever and then a new image will be generated with the changes.
 
Last edited:
How will browsers react to pages with >307200 divs (680*480 image)?

I sometimes see firefox slow to a crawl on blog pages with thousands of comments and wonder if it is div related.
 
Back
Top Bottom