Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Aug 30, 2024
1 parent 0093d72 commit 789c976
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/object/image.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
use crate::chunk_container::ChunkContainer;
use crate::color_space::{DEVICE_CMYK, DEVICE_RGB};
use crate::error::KrillaResult;
use crate::object::color_space::DEVICE_GRAY;
use crate::serialize::{FilterStream, Object, SerializerContext};
use crate::util::{NameExt, Prehashed, SizeWrapper};
use image::codecs::gif::GifDecoder;
use pdf_writer::{Chunk, Finish, Name, Ref};
use std::ops::DerefMut;
use std::sync::Arc;
Expand Down Expand Up @@ -33,8 +31,7 @@ impl BitsPerComponent {
#[derive(Debug, Hash, Eq, PartialEq)]
enum ImageColorspace {
Rgb,
Luma,
Cmyk,
Luma
}

impl TryFrom<ColorSpace> for ImageColorspace {
Expand Down Expand Up @@ -216,7 +213,6 @@ impl Object for Image {
ImageColorspace::Luma => {
image_x_object.pair(Name(b"ColorSpace"), sc.gray());
}
ImageColorspace::Cmyk => {}
};

image_x_object.bits_per_component(self.0.bits_per_component.as_u8() as i32);
Expand Down
1 change: 0 additions & 1 deletion src/svg/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,5 @@ pub fn render(image: &usvg::Image, surface: &mut Surface, process_context: &mut
group::render(t.root(), surface, process_context);
surface.pop();
}
_ => unimplemented!(),
}
}
2 changes: 1 addition & 1 deletion src/tests/manual.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::rgb::Rgb;
use crate::serialize::SerializeSettings;
use crate::stream::Glyph;
use crate::tests::{
load_jpg_image, write_manual_to_store, ASSETS_PATH, COLR_TEST_GLYPHS, DEJAVU_SANS_MONO,
write_manual_to_store, ASSETS_PATH, COLR_TEST_GLYPHS, DEJAVU_SANS_MONO,
NOTO_SANS, NOTO_SANS_ARABIC, NOTO_SANS_CJK, NOTO_SANS_DEVANAGARI,
};
use crate::util::SliceExt;
Expand Down

0 comments on commit 789c976

Please sign in to comment.