[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 75 KB, 640x480, dur_mol2.jpg [View same] [iqdb] [saucenao] [google]
2887849 No.2887849 [Reply] [Original]

Hay /sci/.
How do I get into a jpeg.
I want to manipulate a pic on a very basic leven, fuck up the colors ect. (using java or pythong, or whatever.)

pic related: it's a .jpg

>> No.2887852

matlab

>> No.2887853

It's quite difficult. Ever seen Tron?

>> No.2887864

You need to be a pixle. Only pixles get to go in jpegs brah.
________
  ▲
▲ ▲

>> No.2887866

Molly used to be so hot back in the day.

>> No.2887876

javax.imageio.plugins.jpeg

>> No.2887877
File: 68 KB, 640x480, bestestMolly.jpg [View same] [iqdb] [saucenao] [google]
2887877

>>2887852
?
really?
how?
I can into matlab, but I don't see how I would access a jpg that way

>>2887853
I lol'd :)

>>2887864
...

>>2887866
Are you anyones favorite person?

>> No.2887878

Never done it myself, but this should do it I think:

1) Study the .jpg file format (this, I think: http://en.wikipedia.org/wiki/JPEG_File_Interchange_Format))
2) Open the file in a hex editor. (Once you figure out what to do, automating it with a script should be simple)
3) Figure out the offset of the image data, change one byte in the color information.
4) Try to open the file to check that it worked.

>> No.2887883

Hello and good Thursday April 14th. I'm Molly and this is Rocketboom.

>> No.2887885

Also, be sure to investigate the .gif and .png formats to see if they're perhaps simpler to screw with.

>> No.2887891
File: 435 KB, 1536x1024, mollykiss.jpg [View same] [iqdb] [saucenao] [google]
2887891

>>2887876
thx. It looks a bit complicated but I'll look into it

>> No.2887895

Use an API to load the JPG as a bitmap. Don't alter it at the JPG format level, that is silly.

>> No.2887921

JPG data is transformed and compressed. You can't just change a pixel by editing a few bytes in the file.

>> No.2887929
File: 268 KB, 649x374, mollythisway.png [View same] [iqdb] [saucenao] [google]
2887929

>>2887921
okay, so I should go with BMP then, right?

>> No.2887935

>>2887929
Yes, that's one of the easier formats.