[ / / / / / / / / / / / / / ] [ dir / cafechan / caos / chicas / had / leftpol / sonyeon / sw / tijuana ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): c0ecfb87a13bc61⋯.png (33.29 KB, 640x409, 640:409, hashes.png) (h) (u)

[–]

 No.848466>>848481 >>848488 >>848524 >>848541 [Watch Thread][Show All Posts]

I'm wondering if there's a hash for images that is made from the pixel data instead of the binary data. This way, a bmp would have the same hash as a png (or gif or flif or etc.) if the image were exactly the same, and a jpg converted to png would have the same hash before and after since png would keep the jpg's artifacts.

I often use lossless compression on my images, which changes their hash. This can be bad in some cases. For example, Hydrus shits itself if you change one byte of an image since it uses hashes to store and manage them.

Does this exist? Is such a thing even possible?

 No.848481>>848485 >>848533 >>849355

>>848466 (OP)

With lossless you just have to uncompress and hash the data, which will be the same no matter the format. With lossy compression you can't, obviously.

When did this place become full of 4chan-tier faggots?


 No.848485

>>848481

That still works with lossy compression, as long as you don't touch the image itself, but only change metadata or do lossless recompression (like jpegoptim tries by default).


 No.848488>>848577 >>850350


 No.848495>>850350

there is photodna for the copyright mafia, but it is proprietary and not public


 No.848524

>>848466 (OP)

imagemagick and/or ffmpeg could do that.

search the web.


 No.848533>>848577 >>848829

>>848481

Nice meaningless post.


 No.848541>>849500

>>848466 (OP)

>I'm wondering if there's a hash for images that is made from the pixel data instead of the binary data.

>Does this exist? Is such a thing even possible?

No. Hash functions _only_ work on binary data. Pixels are RGB or RGBA. As you see, you can't hash pixels.


 No.848577

>>848533

>meaningless

Just because you can't understand doesn't make it meaningless. He correctly answered OP's questions.

I think python-scikit-image has some >>848488 function you could try.


 No.848829

>>848533

He answered the question fine. Are you dumb?


 No.849355>>849382 >>850353 >>850358

>>848481

/r/gatekeeping


 No.849382

>>849355

>asking extremely simple questions on anonymous boards and getting offended by the replies


 No.849500>>850375

>>848541

>No. Hash functions _only_ work on binary data. Pixels are RGB or RGBA. As you see, you can't hash pixels.

>Pixels are RGB

Pixels are typically represented in computers as 24 binary digits you to stupid fucking retard nigger.


 No.850350

>>848488 THIS

>>848495 Glow-in-the-dark, but still correct.

And the rest can't comprehend OP's wording...

Anyway we need an open source alternative,

and IQDB is way to old-fashioned (*booru)

Realted:

https://news.ycombinator.com/item?id=9868421


 No.850353

>>849355

I've never even heard of this. Why is leddit coming here?


 No.850355


 No.850358

>>849355

The true face of /tech/


 No.850375

>>849500

The Dunning-Kruger effect in action, gents and gents




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
17 replies | 0 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / cafechan / caos / chicas / had / leftpol / sonyeon / sw / tijuana ][ watchlist ]