タグ

imageに関するkic-yuukiのブックマーク (2)

  • Lorem Picsum

    Easy to use, stylish placeholders Just add your desired image size (width & height) after our URL, and you'll get a random image. https://picsum.photos/200/300 To get a square image, just add the size. https://picsum.photos/200 Specific Image Get a specific image by adding /id/{image} to the start of the url. https://picsum.photos/id/237/200/300 You can find a list of all the images here. Static R

    Lorem Picsum
    kic-yuuki
    kic-yuuki 2019/05/09
    いい感じの画像返してくれるサイトみっけた
  • Rails: Asset Pipeline: production 環境で、CSS で指定している画像が表示されない問題について - #tech

    Rails の Asset Pipeline を使っていると、 development 環境では動作していたのに、production 環境で画像が表示されない、 アセット(CSS、JS)が正しく取得できないという問題が起きることがある。 この問題は、いろいろとバリエーションがあるのだが、 今回は CSS 上で使用している画像が表示されないケースについて説明しようと思う。 想定環境は次のとおり。 環境 バージョン Ruby 2.0.0p598 Ruby on Rails 4.1.9 nginx 1.6.2 unicorn 4.8.3 次のような設定で、production 環境を起動しているとする。 config.serve_static_assets = false # アセットの配信は、Nginx が担当する config.assets.digest = true # フィンガープリン

    Rails: Asset Pipeline: production 環境で、CSS で指定している画像が表示されない問題について - #tech
    kic-yuuki
    kic-yuuki 2019/03/27
    assetsのcss側で画像パス指定する際は image-url ってのを今更覚えた。。。、感謝
  • 1