News for hackers. Stuff that matters.
Re:New Renderers for GTK by lukan on Monday January 29, 2024 @07:53AM (#39175674)
A screenshot of a rasterized image saved in SVG is not something I see any use for. It will be a bloated monstrosity.

SVG is vector graphics, when you already have pixels - there is no clear way going back.

Re:New Renderers for GTK by vilhelm_s on Monday January 29, 2024 @08:06AM (#39175749)
SVG files can refer to images for bitmap graphics, only the rectangles, text, etc would be specified as vectors. See https://www.joachim-breitner.de/blog/494-Better_PDF_screensh... for a demo.
Re:New Renderers for GTK by chris_wot on Monday January 29, 2024 @08:00AM (#39175711)
I think he means taking the scenegraph and saving it directly to SVG. Pretty much how it would be done for PDF.
Re:New Renderers for GTK by lukan on Monday January 29, 2024 @08:08AM (#39175765)
Ah, right. Does not sound too complicated, but is an entirely seperated render path. And apparently now supported? But I have never seen it put to use.
Re:New Renderers for GTK by chris_wot on Monday January 29, 2024 @08:09AM (#39175777)
It seems super complicated to me :-) cool idea though
Re:New Renderers for GTK by lukan on Monday January 29, 2024 @08:39AM (#39176088)
I got the impression from above, that this is something possible now, yet I have never seen such a capability. And I thing the effort will be way greater the reward to implement from scratch ..

("Easy" assumed, there is already something there)

Re:New Renderers for GTK by themerone on Monday January 29, 2024 @08:51AM (#39176216)
Cairo and Skia can do this.
Re:New Renderers for GTK by lukan on Monday January 29, 2024 @09:23AM (#39176575)
But is there a real world use case, where this actually was put to use?

(Sorry, I am having flashbacks of the debate with X and wayland, where it was argued, but X is network transparent, except that it wasn't anymore since a long time and, or because - no one used it)

Re:New Renderers for GTK by tadfisher on Monday January 29, 2024 @01:40PM (#39180390)
The "Save to PDF" feature in Firefox's print settings uses the Skia-to-PDF renderer on various platforms, I believe.
Re:New Renderers for GTK by lukan on Tuesday January 30, 2024 @10:34AM (#39191278)
And for SVG?

Having features is nice, but not if they are not really necessary and come at the cost of the core feature (performant screen renderer).

Re:New Renderers for GTK by themerone on Tuesday January 30, 2024 @02:35PM (#39194588)
The problem here, is that you have no clue what the core features of a UI toolkit need to be.

If performance was the primary concern, GTK and QT, would not be generations behind (a claim I am skeptical of.)

UI toolkits have a much larger audience than the tiny corner of the industry you work in.

Re:New Renderers for GTK by lukan on Wednesday January 31, 2024 @11:50AM (#39205997)
Well, it just so happens that I build a UI toolkit over the last decade, but yes with performance in mind and not featuritis. But apparently I have no clue, well sad to hear that. I'll show myself out.
Re:New Renderers for GTK by jandrese on Monday January 29, 2024 @09:44AM (#39176794)
The use case is usually sending the screen to the printer or saving a document.