ruby-on-railsrubyimagephotoshoppsd

how to load a psd file ruby on rails


How do I load a psd file so it renders on a page like an image in Ruby on Rails? I have no problem loading my image files. For example, this works fine

%img{alt: 'icons', src: image_path('icons/others/users.svg') }
          Users

but this does not

     %img{ alt: 'Colours', src: image_path('/colours.psd')} 

Solution

  • You'll need to export the .psd file to a supported image file, such as a .jpeg, .png, .gif, etc.