Feature #38368 ยป webp_images_support_in_pdf_export.patch
| Gemfile | ||
|---|---|---|
|
gem 'mail', '~> 2.8.1'
|
||
|
gem 'nokogiri', '~> 1.14.0'
|
||
|
gem 'i18n', '~> 1.12.0'
|
||
|
gem 'rbpdf', '~> 1.21.0'
|
||
|
gem 'rbpdf', '~> 1.21.1'
|
||
|
gem 'addressable'
|
||
|
gem 'rubyzip', '~> 2.3.0'
|
||
| lib/redmine/export/pdf.rb | ||
|---|---|---|
|
def self.attach(attachments, filename, encoding)
|
||
|
filename_utf8 = Redmine::CodesetUtil.to_utf8(filename, encoding)
|
||
|
atta = nil
|
||
|
if /^[^\/"]+\.(gif|jpg|jpe|jpeg|png)$/i.match?(filename_utf8)
|
||
|
if /^[^\/"]+\.(gif|jpg|jpe|jpeg|png|webp)$/i.match?(filename_utf8)
|
||
|
atta = Attachment.latest_attach(attachments, filename_utf8)
|
||
|
end
|
||
|
if atta && atta.readable? && atta.visible?
|
||