Are there any tools which convert images to a collection of html pixels which depict that image?

Are there any tools which convert images to a collection of html pixels which depict that image?

Other urls found in this thread:

jii.moe/4J8ziBqxf.html
php.net/manual/en/book.image.php
battle-programmer-shirase.neocities.org/
my.mixtape.moe/hqwbkt.html
patrick-wied.at/blog/image-protection-on-the-web
pastebin.com/PmNJXVal
a.pomf.cat/mezvoc.rar
a.pomf.cat/yibelv.html
a.pomf.cat/dlpdqk.rar
zerosixthree.se/cow.html
stylecampaign.com/blog/2009/12/bypass-image-blocking-by-converting-images-to-html/
a.cuntflaps.me/efkofx.html
twitter.com/AnonBabble

wtf is an html pixel?

>this
Are you talking about ASCII art, you spaz?

yes

angry much, shitlord

Do you mean 1x1px html elements?
Probably no, such a tool doesn't exist. Why? It's retarded.

im astonished he figured out what op meant

Like this you stupid fucking gay piece of faggots shit

>shitlord
>If I were angry I would've used something a bit more visceral than "spaz".
See

You could very easily write a script to do that.
Although I have no idea why you would ever want to

>text is how literally known as "html pixels"
what has the world become

> is it possible to transform an image such that it takes 50 times more space?
Yep

if you want to embed an image in an html document, encode it to base64

jii.moe/4J8ziBqxf.html

I will ARSEume you are working in php, as you seem to be too lazy to find the answer for yourself:
php.net/manual/en/book.image.php

If you aren't using php, reading the introduction will give you enough BACKground to google it up yourself.

Ha, you are fucking retarded.

Okay, OP. What the hell did you mean then?

Disclaimer: I'm not him
I'm betting on obfuscation

>only 50.
A 500kb jpg could end up being a 20mb html blob

Not-op here
That is very easily compressible, specially if it repeats again and again while only changing the position and colour. Serving it gzip'ed and gunzipping it at the browser with some javascript zlib or another could do the trick quite nicely.

It would be a fairly pointless obfuscation measure, you could just save the webpage or take a screenshot and crop it.

Make your own, you can do it in less than 50 lines of python.
battle-programmer-shirase.neocities.org/

Also an unoptimized one
my.mixtape.moe/hqwbkt.html

Pretty cool effect with the lain picture. I like it!

I seem to recall that GIMP had an HTML export feature. However, why do you need this? Far better to use an image, if you can.

A simple script could take input as a list of HTML color codes and read them line by line, then after hitting the width of the image it writes to the next line simply by adding one to the y co-ord.

Since only the coordinates of x and y are are changing it shouldn't be that large at all

I would write thea script but I don't know the easiest way to read the colors of each pixel in any image format

I bet it'd be non-indexable, and it could help filtering normies who at the very most would try to right-click and save the image.
Anyways, it looks like OP should read this:
patrick-wied.at/blog/image-protection-on-the-web

from PIL import Image

im = Image.open("image.jpg")

x = im.size[0]
y = im.size[1]

pix = im.load()

for j in range(y):
for i in range(x):
print(pix[i,j])


But you should really create a CSS class for each color and group contiguous "pixels" in a single div if they are all of the same color to get a lighter html file. Also maybe only use 65k colors or less.
Another space-saving trick that you can try is to use hexadecimal class names to save a few chars in the final output.

I want to cum in her

sauce

You now see the appeal of images that can't easily be indexed

Just reverse this I can't ever remember her name

She's one of Sup Forumss newer staple cunnies

>All of this loli Harley cosplay

Thanks DC!

Jews aren't so bad after all

Keep that degenerate media coming, Goldstein!

I'm bored so imma do some math
a 640x360 has around 230,400 pixels, and the same number of bytes at one byte per pixel. my jpeg is 77.4K.

Assuming each element was something along the lines of then that would be 33 bytes per pixel, or 7 megabytes of just fucking text.
for something that would literally never format right, and eat up CPU with formatting for like a minute straight.
why the fuck.

Yup.
I've done this before, but using html tables.
Made a simple c++ program to make a table, with each entry being a solid color representing a pixel from the image.
It worked quite well, but killed the browser, and was massive.
It compressed quite well though, if you wanted to zip and share the table.

Only legitimate use is to send images to people who have images disabled.

Yeah, I've seen emails that do it, but they were so simple that I would bet the farm that they did it by hand, which really defeats the purpose of this thread.

Or they just wanted it to be a reasonable size, so people could actually load the page.
It's pretty easy to write a quick script to output this stuff.

>reasonable size
>html as an image format
how did you even manage to navigate to Sup Forums, user?

If it's 64 x 64 it'll still be a reasonable size.

nice

are there even examples of a website doing that? most probably that non-standard shit would break any browser.

Tables will work just fine.
Here's an example.
pastebin.com/PmNJXVal

Completely standard.

I've been here longer than any of you 12 year olds and I can tell you this: everything will be fine. But if it won't be, nothing of value was lost.

He means is there a way to easily convert images into pure HTML arranged pixels. e.g. the html page would have individual pixels drawn instead of storing the image.

funnily enough, an email can only be a single text file
"attachments" are encoded to base64 (which is also why you can't put a 10M file in an email on a service that supports 10M, as base64 encoding introduces some overhead)

>that non-standard shit
That's entirely standard shit. Totally vanilla syntax, just used kind of abusively.

I regret nothing

a.pomf.cat/osooux.html
a.pomf.cat/behdwg.rar

>a.pomf.cat/osooux.html
this kills the browser

lmao noice

YOU COULD HAVE STOPPED THIS
a.pomf.cat/mezvoc.rar

a.pomf.cat/yibelv.html

This is terrible. Performance would be better if classes were used instead of embedding the css in the html nodes.

a.pomf.cat/dlpdqk.rar

If you open all the files then hold control + tab the anime girl dances

DANCE ANIME GIRL! DANCE!

Isn't that what a fucking picture is?

No. Images are compressed in a much more intelligent way.
What he wants is a verbose ppm format that requires a browser to read.

I think they mean like zerosixthree.se/cow.html

>Are there any tools which convert images to a collection of html pixels which depict that image?
stylecampaign.com/blog/2009/12/bypass-image-blocking-by-converting-images-to-html/

I'm guessing to bypass an image blocker. That's what all the tools OP is asking for were created to do

>implying browsers are the only things that read HTML

I would image-ine if anyone created such a program, they might call it something like img2ascii

...

>are there even examples of a website doing that? most probably that non-standard shit would break any browser.
It's less complicated than the acid2 test so it should be ok in most major browsers.

Well, provided that you have a shitload of ram anyway.

This
GIMP have that useless feature of export image to an HTML table
Make 1x1 cells with no border in CSS and you're done.

Write the tool yourself

Here's some psuedo code
image = ... //open image
print("");
for(int x = 0; x < image.width; x++) {
print("");
for(int y = 0; y < image.height; y++) {
print(" ");
}
print("");
}
print("");

Came for the cunny. Stayed for...well moar cunny actually. Bye!

but that's ANSI

holy moly of lag ahah

Yeah but you could just base64 the image and use data:

Can someone photoshop a black cock in her mouth?

edit this to do html shit faggot

import sys
from PIL import Image
import numpy as np

chars = np.asarray(list(' .,:;irsXA253hMHGS#9B&@'))

if len(sys.argv) != 4: print( 'Usage: ./asciinator.py image scale factor' ); sys.exit()
f, SC, GCF, WCF = sys.argv[1], float(sys.argv[2]), float(sys.argv[3]), 7/4

img = Image.open(f)
S = ( round(img.size[0]*SC*WCF), round(img.size[1]*SC) )
img = np.sum( np.asarray( img.resize(S) ), axis=2)
img -= img.min()
img = (1.0 - img/img.max())**GCF*(chars.size-1)

print( "\n".join( ("".join(r) for r in chars[img.astype(int)]) ) )

>Can someone photoshop a black cock in her mouth?

I gotchu senpai

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;

import javax.imageio.ImageIO;

public class ImageCycle {

public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException {

BufferedImage image = null;

try {
image = ImageIO.read(new File("C:/Users/user/Desktop/pepe.jpg"));
} catch (IOException e) {
e.printStackTrace();
}

PrintWriter writer = new PrintWriter("pepePage.html", "UTF-8");

writer.println("");
writer.println("");

for (int y = 0; y < image.getHeight(); y++) {
for (int x = 0; x < image.getWidth(); x++) {
int clr = image.getRGB(x, y);
int red = (clr & 0x00ff0000) >> 16;
int green = (clr & 0x0000ff00) >> 8;
int blue = clr & 0x000000ff;
image.setRGB(x, y, clr);
writer.println("");
}
}

writer.println("");
writer.println("");
writer.close();

}

}

my i7 is choking dealing with a 200px image using this. You're probably better writing it to a canvas.

>java

what the fuck

Who is this semen demon? Reverse image search was futile.

When my last paycheck came in I immediately bought a new top. It was expensive but It wasn't anything I had to worry about.

;_;

I bet he's trying to tinfoil-hat level store his dank memes in a way that three letter US government orgs can't find them because they'd be looking for images on his computer, not html.

Why are you posting lolis?

I think it's Lilly Kruk

imagine being at computers

Not him, but yeah, she is.

>gzip'ed and gunzipping it at the browser
>with some javascript zlib
you mean like "Accept-Encoding: gzip"?

and now the entire thread is going to prison for a very long time.

why?

there are no girls on the internet, attempts to place girls on the internet can result in a fine or prison sentence

I want her to succ me dry.

a.cuntflaps.me/efkofx.html