Dario Paez
Dario Paez

Reputation: 59

Rails Gem “Axlsx” - Adding Image Fail

SO.Windows 10

ruby : 2.6.6

rails : 6.0.3.2

axlsx : 2.0.1

this is my code.

img = File.expand_path(Rails.root + "app/javascript/img/logo-finky.png", __FILE__)
    sheet.add_image(:image_src => img, :noSelect => true, :noMove => true, end_at: true, :hyperlink => "https://www.finky.la/") do |image|
      image.width = 64
      image.height = 64
      image.hyperlink.tooltip = "Finky"
    end

enter image description here

this is the error when opening the file

If I press yes then it shows the information

enter image description here

it only happens when I add an image

Upvotes: 0

Views: 155

Answers (0)

Related Questions