image-surface-get-data calls get-bytes-per-pixel, which returns an "unknown format" error for any format. The symbols in the get-bytes-per-pixel code were wrong (format-argb32, format-rgb24, etc.) Replaced the undefined symbols with :argb32 :rgb24 and :a8 to fix the problem.
image-surface-get-data calls get-bytes-per-pixel, which returns an "unknown format" error for any format. The symbols in the get-bytes-per-pixel code were wrong (format-argb32, format-rgb24, etc.) Replaced the undefined symbols with :argb32 :rgb24 and :a8 to fix the problem.