lib/ddr/derivatives/multires_image.rb in ddr-models-3.0.0.beta.10 vs lib/ddr/derivatives/multires_image.rb in ddr-models-3.0.0.beta.11
- old
+ new
@@ -1,10 +1,12 @@
module Ddr::Derivatives
class MultiresImage < Derivative
def self.generatable?(object)
- object.can_have_multires_image? && object.has_content? && object.content_type == "image/tiff"
+ object.can_have_multires_image? &&
+ object.has_content? &&
+ (object.content_type == "image/tiff" || object.content_type == "image/jpeg")
end
def self.has_derivative?(object)
object.has_multires_image?
end
@@ -54,6 +56,6 @@
subpath_segments = m.to_a[1..-1]
File.join *subpath_segments, subdir
end
end
-end
\ No newline at end of file
+end