https://bugs.kde.org/show_bug.cgi?id=515227

Ekansh <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Ekansh <[email protected]> ---
(In reply to Albert Astals Cid from comment #3)
> (In reply to hosssam.sabeer from comment #1)
> > Hi! I’m new to open source and looking for my first contribution to KDE.
> > This feature seems really useful (I’ve wanted it myself!), so I’d love to
> > try implementing it.
> > 
> > I’ve been exploring the code a bit, and my rough plan was to:
> > 
> > 1- Check if the backend detects an image at the mouse coordinates (looking
> > at Page / ObjectRect).
> > 
> > 2- If an image is found, add a "Save Image As..." action to the right-click
> > menu in PageView.
> > 
> > Does that sound like the right direction? If so, I can start working on it!
> 
> No backend creates ObjectRects of type Image, so no that's not going to work.
Hey i was exploring the codebase to understand the issue better as far as i
have understood is that
QPainterOutputDev::drawImage in Poppler have the GfxState containing the
current transformation matrix which gives the image's exact position on the
page, and the pixel data is available via ImageStream. Would it be feasible to
create ObjectRect::Image entries here by extracting the coordinates from
GfxState? Happy to explore this direction if it seems viable.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to