Pasting photos increases the size of the image file massively?

Hi Logseq team, I use quite a lot of images in my note-taking. I just had a 277KB image file sunshine.jpg on my Win10 desktop, and when I as per normal Ctrl+C Ctrl+V copied and pasted it into my Daily Journal of Logseq 0.7.8, on the spur of the moment decided to check it’s size in Logseq>Assets.

Logseq has converted it into: image_1659267794780_0.png, but alarmingly with a size of 1.72MB.

I then tried dragging and dropping the same image onto the same page, with the result that it became: sunshine_1659270210316_0.jpg, with an image size of 277KB.

I then decided to try the ‘/Upload an asset’ command, something I don’t normally use, with the resulting file sunshine_1659280644691_0.jpg at 277KB.

Looking at folder Logseq>Assets, it is mainly full of consistently named files e.g. image_1656717265653_0.png, clearly formatted by Logseq, with a few others of irregular naming, such as already mentioned sunshine_1659270210316_0.jpg.

My question is, if Logseq is formatting images into it’s own convention, why is it increasing the size from 277KB to 1.74MB, as this is clearly going to add to overall database size?

Now that I realise this, I can use the /Upload function, or drag and drop. However through habit and ease, I’ve always just copied and pasted, as the quickest route.

Looking at your docs.logseq documentation, there is no mention or warning of file size increases:

## Photos, Images, GIFs
To embed images, you can either:
Copy-paste them into Logseq (which will duplicate the file into your Logseq’s graph’s folder in the Assets on your PC), OR
Point the photos to a particular path on your computer storage or online storage.

(BTW, what on earth does the 2nd option, Point the photos to a particular path on your computer storage or online storage, even mean?)

Cheers, Smithy.

I see the same behavior on macOS, albeit the workflow is a bit different. I changed the standard OS screenshot format to jpeg (via the terminal), to save storage space.

I take a partial screenshot to the clipboard. In Finder → Edit → Show Clipboard I can see that the file in the clipboard is a jpeg-file. When pasting that file into Logseq, it seems to actively convert it to a png file, increasing the filesize manyfold. Taking the screenshot to a file and dragging it into Logseq keeps the correct filetype. Other apps like Word and Pages don’t behave this way and import the jpeg-file from the clipboard correctly (the document file-sizes increase only modestly compared to the same screenshots as png-files).

I don’t want my hard drive/ icloud drive filled up unnecessarily, so I guess this is a bug. My version is 0.8.0 and the OS is up to date.

Cheers @eugene, I’ll have to remember to Drag n Drop or /upload an asset.

Maybe when the Devs see this they might take it onboard? :grinning: :+1: :+1:

Welcome to the forum :sunglasses: