File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,9 @@ pub(crate) fn process_pixels_cpu(
376376 "Failed to create image view from buffer for dithering" . to_string ( ) ,
377377 )
378378 } ) ?;
379- palettized:: floyd_steinberg ( & mut image, config, lab_colors)
379+ palettized:: floyd_steinberg ( & mut image, config, lab_colors) ?;
380+ image_data. copy_from_slice ( image. as_raw ( ) ) ;
381+ Ok ( ( ) )
380382 }
381383 Dithering :: Bn => {
382384 let mut image =
@@ -385,7 +387,9 @@ pub(crate) fn process_pixels_cpu(
385387 "Failed to create image view from buffer for dithering" . to_string ( ) ,
386388 )
387389 } ) ?;
388- palettized:: blue_noise ( & mut image, config, lab_colors)
390+ palettized:: blue_noise ( & mut image, config, lab_colors) ?;
391+ image_data. copy_from_slice ( image. as_raw ( ) ) ;
392+ Ok ( ( ) )
389393 }
390394 }
391395}
You can’t perform that action at this time.
0 commit comments