Class: Texture3mf
- Inherits:
-
Object
- Object
- Texture3mf
- Defined in:
- lib/ruby3mf/texture3mf.rb
Class Method Summary collapse
Class Method Details
.parse(relationship_file, relationships) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/ruby3mf/texture3mf.rb', line 3 def self.parse(relationship_file, relationships) img_type = MimeMagic.by_magic(relationship_file.get_input_stream) Log3mf.context "Texture3mf" do |l| l.debug "texture is of type: #{img_type}" l.error "Expected a png or jpeg texture but the texture was of type #{img_type}", spec: :material, page: 16 unless ['image/png', 'image/jpeg'].include? img_type.type end end |