Please support cairo for background image

Bug #1143720 reported by Koichi Akabe
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
LiveWallpaper
Fix Released
Low
Unassigned

Bug Description

Some plugins contain images for default backgrounds and filters, but some of these images are too large (e.g. nexus/images/background.png is 1.5MB)

I think some images are able to draw on runtime using cairo:
plugins/nexus/images/background.png -> cairo_pattern_create_radial
plugins/nexus/images/glow-radial.png -> cairo_pattern_create_radial, cairo_rectangle
plugins/nexus/images/trail.png -> cairo_pattern_create_linear, cairo_pattern_add_color_stop_rgba
plugins/galaxy/images/star.png -> cairo_pattern_create_radial

Runtime drawing is better than fixed images because it's able to be resized and it can shlink file size.

Changed in livewallpaper:
importance: Undecided → Low
milestone: none → 0.5.0
status: New → Confirmed
Revision history for this message
Maximilian Schnarr (fyrmir) wrote :

It is now possible to use cairo for background images by using LwCairoTexture with the lw_background_new_with_default_texture function. In the latest revision (rev. 206), I removed nexus' background image. I guess all problems mentioned in this bug report are fixed, so I mark it as fixed.

Changed in livewallpaper:
status: Confirmed → Fix Committed
Changed in livewallpaper:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.