会翻车吗 发表于 2024-11-6 11:08:41

有没有把图片变成HTML的软件或方法?

比如我有一张生活照,大家都知道照片是由像素组成的,那有没有办法把照片转成HTML,意思就是变成无数个类似#000000和#ffffff这样的HTML颜色代码组成一张和生活照一模一样的照片?

一灰 发表于 2024-11-6 11:22:06

[*]data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx4BBQUFBwYHDggIDh4UERQeHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHv/AABEIAHgAWgMBEQACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/ANuKHjkfnXOYMtRw57U7gWYoMAcUnqImWHGDigUh/k9uBQKRHL5Uajc6rzxk9afK5bESkkg3wcEyJyNwGeo9f1FLkaJTW47yMnOPz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你的头像

krazy176 发表于 2024-11-6 11:32:29

自己写代码啊,遍历每一个像素得到它的rgb值再输出,多简单啊

亮有一妓 发表于 2024-11-6 11:33:00

没有

df5tg 发表于 2024-11-6 11:34:18

Photoshop+Dreamweaver

会翻车吗 发表于 2024-11-6 12:30:49


krazy176 发表于 2024-11-6 11:32

自己写代码啊,遍历每一个像素得到它的rgb值再输出,多简单啊
可是为什么GPT做不到,你能做一个你头像图片的HTML网页吗?

ChenYFan 发表于 2024-11-6 11:32:00

换个思路,可以转成svg,同样是路径+颜色实现的,primitive.jshttps://ondras.github.io/primitive.js/

hellochrome 发表于 2024-11-6 12:31:59

找一个在线的 JPG/PNG to Base64 工具就行

yjsx86 发表于 2024-11-6 12:33:30

本帖最后由 yjsx86 于 2024-11-6 12:53 编辑

二楼就是解决办法了
一般小图片才这样做, 避免多次http请求, 缺点是首页大小增加
https://liveweave.com/NSt5tN
页: [1]
查看完整版本: 有没有把图片变成HTML的软件或方法?