Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

商品画像がないとき、商品画像がないという画像をもらうようにする #11

Open
hitode909 opened this issue Oct 20, 2009 · 8 comments
Labels

Comments

@hitode909
Copy link
Collaborator

画像をリンクにしているとき、画像がないと、困る

@Sixeight
Copy link
Owner

画像がないことを確認するのをどうすればいいだろうか

@hitode909
Copy link
Collaborator Author

先にurlfetchしておいて、nキロバイト以下ならないと判断するとか

@hitode909
Copy link
Collaborator Author

APIで取れればいちばんよいのですが………;

@Sixeight
Copy link
Owner

先にurlfetchしておいて、nキロバイト以下ならないと判断するとか

この案を採用しようとしたんだけど、毎回2回リクエストするのがなんか微妙

@hitode909
Copy link
Collaborator Author

商品画像があるかをBookのカラムに入れておくとか

@Sixeight
Copy link
Owner

画像自体をこちらで持つのはダメだろうか?
初回にDBにバイナリで入れてしまって、無い場合は専用のをpublic以下に入れておくとか

@hitode909
Copy link
Collaborator Author

各種サイズ、影の有無、クロップされた画像、などなどが必要になることを考えると、それはないんじゃないか、という気がします

@hitode909
Copy link
Collaborator Author

jsサイズを見てsrcを置換とか

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants