Live data from Hacker News

MSPaint in JavaScript

jspaint.app

71–80 of 129 posts

Re: MSPaint in JavaScript

#71
post #55

Photoshop in JavaScript: https://www.photopea.com/ I use it all the time, amazing it was created by a single person!

Nice. Although one of the hidden power of Photoshop is the ability to open ridiculous large image files without any hurdle whatsoever. The other day a client sent a 5GB comp we had to open to modify some text, I was surprised how well Photoshop handled it, on a relatively cheap laptop. Not sure how it would fair in the browser.

Well, for start, you would need to upload 5GB. Not sure how much time it would take you given that usually normal US consumer has a crap connection when it comes to it.

Always amazed how in Earth USA is still 1st economy with all the crap Verizon/Comcast & Co do to average US citizen.

Re: MSPaint in JavaScript

#72

Photoshop in JavaScript: https://www.photopea.com/ I use it all the time, amazing it was created by a single person!

Oh my god that's literally insane. Sorry, but I am astonished by what it implements.

Layers? Path editing? Blending options? Content-aware fill? Convert text to shape? In a web browser?

I'm just blown away right now. I'm editing a 2000x3000 pixel image and it seems just as fast as my copy of actual Photoshop.

I can't even fathom how much work this must have been. One person? How is that even possible?

Re: MSPaint in JavaScript

#73
post #55

Earlier quoted context omitted.

Nice. Although one of the hidden power of Photoshop is the ability to open ridiculous large image files without any hurdle whatsoever. The other day a client sent a 5GB comp we had to open to modify some text, I was surprised how well Photoshop handled it, on a relatively cheap laptop. Not sure how it would fair in the browser.

Well, for start, you would need to upload 5GB. Not sure how much time it would take you given that usually normal US consumer has a crap connection when it comes to it. Always amazed how in Earth USA is still 1st economy with all the crap Verizon/Comcast & Co do to average US citizen.

It's JavaScript. It runs on the client side.

Re: MSPaint in JavaScript

#74
post #73

Earlier quoted context omitted.

Well, for start, you would need to upload 5GB. Not sure how much time it would take you given that usually normal US consumer has a crap connection when it comes to it. Always amazed how in Earth USA is still 1st economy with all the crap Verizon/Comcast & Co do to average US citizen.

It's JavaScript. It runs on the client side.

The script do run on the client side, but it can't access images from your computer, so you will have to upload it first so it can access it from the server.

Re: MSPaint in JavaScript

#75
post #73

Earlier quoted context omitted.

Well, for start, you would need to upload 5GB. Not sure how much time it would take you given that usually normal US consumer has a crap connection when it comes to it. Always amazed how in Earth USA is still 1st economy with all the crap Verizon/Comcast & Co do to average US citizen.

It's JavaScript. It runs on the client side.

Couldn't you upload the file to a blob, keeping it client side?

Re: MarcellusDrum

Re: MSPaint in JavaScript

#76
Even the speed by which help articles load when clicked on in the Help Topics works the same way as ms paint. This is insane level of attention to details.

On a separate note, I love the Help Topics so much I think I will use it instead of ZenDesk guide pages on our SaaS website. It's so elegant and all contained in one booklet with extremely legible text and iconography. No bs web ui here.

Re: MSPaint in JavaScript

#77

Photoshop in JavaScript: https://www.photopea.com/ I use it all the time, amazing it was created by a single person!

Oh my god that's literally insane. Sorry, but I am astonished by what it implements. Layers? Path editing? Blending options? Content-aware fill? Convert text to shape? In a web browser ? I'm just blown away right now. I'm editing a 2000x3000 pixel image and it seems just as fast as my copy of actual Photoshop. I can't even fathom how much work this must have been. One person? How is that even possible?

He did a few AMAs on Reddit:

https://www.reddit.com/r/IAmA/comments/c8ru2y/i_made_a_free_...

https://www.reddit.com/r/IAmA/comments/9urjmg/i_made_a_free_...

I find this fact mind blowing:

Right now, Photopea is about 1.4 MB (most of it is zipped javascript).

880 kB is the actual program

150 kB are localizations to 38 languages, with 650 phrases in every language

116 kB is a database of gradients, brushes, patterns and contours

84 kB are icons (112 of them, in a 160x160 px resolution)

23 kB is a font database (names, categories and URLs for 4700 TTF files)

Re: MSPaint in JavaScript

#78
post #73

Earlier quoted context omitted.

It's JavaScript. It runs on the client side.

The script do run on the client side, but it can't access images from your computer, so you will have to upload it first so it can access it from the server.

It may be possible via the FileReader API

Re: MSPaint in JavaScript

#79
post #76

Even the speed by which help articles load when clicked on in the Help Topics works the same way as ms paint. This is insane level of attention to details. On a separate note, I love the Help Topics so much I think I will use it instead of ZenDesk guide pages on our SaaS website. It's so elegant and all contained in one booklet with extremely legible text and iconography. No bs web ui here.

> No bs web ui here.

You ain't seen nothing yet: https://dev.lotw.xyz/desk.os

Post reply on HN