Projeto: Vermelho

logs of development
スポンサーサイト

一定期間更新がないため広告を表示しています

| - | | - | -
carrierwaveでs3にファイルアップロード
https://github.com/jnicklas/carrierwave-mongoid
http://gihyo.jp/dev/serial/01/heroku/0011
http://stackoverflow.com/questions/7865831/carrierwave-mongoid-and-image-upload-to-a-nested-object
http://face-do.blogspot.jp/2012/03/herokuimage-uploader.html
| - | 07:56 | comments(0) | trackbacks(0)
ImageMagickをインストールしましょう.
 yumつかえばok

yum -y install libjpeg
yum -y install libjpeg-devel
yum -y install ImageMagick

http://blog.kumacchi.com/2007/07/imagemagick.html
| - | 23:51 | comments(0) | trackbacks(0)
identify -list format の中にJPEGがなかったら.
http://rick-brain.sblo.jp/article/54579735.html
http://www.randycullom.com/chatterbox/archives/2006/12/installing_imag.html


| - | 23:01 | comments(0) | trackbacks(0)
mongoid-Paperclipでimagemagick関連のエラーが出たら.
 https://github.com/meskyanichi/mongoid-paperclip
を使ったところ、ログにエラーが出た.
[paperclip] An error was received while processing: #<Paperclip::Errors::CommandNotFoundError: Could not run the `identify` command. Please install ImageMagick.>

http://stackoverflow.com/questions/6687312/how-to-install-imagemagick-for-use-with-rvm

install_imagemagick.sh

#!/bin/bash
mkdir
-p ~/local
command -v identify > /
dev/null
if [ $? -eq 1 ]; then
    echo
"${bldgrn}Installing imagemagick into ${txtwht}$HOME/local/imagemagick${txtrst}"
    wget
-N --retr-symlinks ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
    tar
-xzvf ImageMagick.tar.gz
    cd
ImageMagick-*
   
./configure --prefix=$HOME/local/imagemagick
    make
    make install
    cd
..
    rm
-rf ImageMagick-*
fi
インストールして、pathも入れる.

Then I add this to my ~/.bashrc or ~/.zshrc

export PATH=$HOME/local/imagemagick/bin:$PATH
export LD_LIBRARY_PATH
=$HOME/local/imagemagick/lib:$LD_LIBRARY_PATH

インストールしてもエラー
[paperclip] An error was received while processing: #<Paperclip::Errors::NotIdentifiedByImageMagickError: /tmp/p131985945074DTFdik20120513-18764-1k7hngf.JPG is not recognized by the 'identify' command.>

その場合は、パスをdevelopment.rbに入れる
http://stackoverflow.com/questions/3222273/paperclip-image-uploads-in-rails-paperclipcommandnotfounderror



| - | 21:31 | comments(0) | trackbacks(0)
scroll downにあわせて画像を読み込む(JQuery lazyload)

http://syain.seesaa.net/article/263237189.html
http://monodez.com/create/lazyload.html
http://toshiiy.blog22.fc2.com/blog-entry-76.html

LazyLoadの問題点と改善
http://blog.ryow.net/2011/12/10-150108.php

reference
画像の読み込み
http://blog.mudaimemo.com/2009/08/jquery_21.html
| - | 23:33 | comments(0) | trackbacks(0)
PROFILE
CATEGORIES
LINKS
CALENDAR
S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930
31      
<< March 2024 >>
SELECTED ENTRIES
ARCHIVES
モバイル
qrcode
SPONSORED LINKS