denkiwakame / arxiv2notion

Chrome extension for clipping arXiv articles to Notion.
MIT License
107 stars 13 forks source link

[feature request] Extracting Fig1 #20

Open Kashu7100 opened 1 month ago

Kashu7100 commented 1 month ago

Thanks for the awesome work! I think it would be useful if this extension can grab the first figure of a paper from ar5iv so that it would be easier to visually search the papers in gallery view.

denkiwakame commented 1 month ago

Hi @Kashu7100

That's a nice idea 🤔 It appears that the teaser figure is always stored at https://ar5iv.labs.arxiv.org/html/${paperID}/assets/x1.png. much more reliable than parsing PDFs to extract the teaser. However, due to the PNG conversion process ar5iv employs (?), the images sometimes suffer from noticeable degradation.

I'm not fully aware of how users utilize this extension, so if this were to be implemented, it might be good to add it as an experimental feature with an option to toggle it ON or OFF. While I cannot implement immediately due to other duties, I'll be considering it for future updates.