You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's because right-clicking > copy copies the pixel data and it's pasted as a PNG. (from something that was originally a JPEG) This isn't particular to 4chan X, I think. I've seen the file size increase when pasting images in places like Discord or Element.
I think it's because right-clicking > copy copies the pixel data and it's pasted as a PNG.
i havent bothered to look into the code to confirm the paste format, but i suspect this is near the issue; im not convinced its raw pixel data pixel data that is copied into the form (298829883 = 26784432 = 3.348 MB, paste was ~ 9MB), inflating file size. i dont know if there is any browser api that can overload paste behavior for images or if its possible to somehow apply an encoder (like jpg) between the image data paste and the file submission to the form (possibly the current behavior). the latter option seems more feasible and productive, though the potential bloat to the extension could be of concern.
as a solution to inflated pasted image size, id like to see a jpg encoder that varies its quality based on the current boards filesize limit and image data size, optimizing for maximum permissible quality.
300kb clipboard image files are somehow converted to 1.5-2.5mb when pasted into 'anonymous' text boxes.
The text was updated successfully, but these errors were encountered: