diff --git a/app/helpers/file_icons_helper.rb b/app/helpers/file_icons_helper.rb index 52fff0b59..2a9272e9b 100644 --- a/app/helpers/file_icons_helper.rb +++ b/app/helpers/file_icons_helper.rb @@ -47,9 +47,7 @@ module FileIconsHelper if image_link if report - image_tag("data:image/svg+xml;base64,#{ - Base64.encode64(File.read(Rails.root.join('app/assets/images/', image_link))) - }", class: 'image-icon') + wicked_pdf_image_tag(image_link, class: 'image-icon') else ActionController::Base.helpers.image_tag(image_link, class: 'image-icon') end