Project

General

Profile

Actions

Enhancement(機能追加・改善) #3561

open

画像アップロード時に上限サイズを超えるファイルは自動的に縮小してアップロードする

Added by Mutsumi Imamura almost 11 years ago. Updated almost 5 years ago.

Status:
Rejected(差し戻し)
Priority:
Normal(通常)
Assignee:
-
Target version:
Start date:
2014-02-21
Due date:
% Done:

50%

Estimated time:

Description

画像アップロード時に上限サイズを超えるファイルは自動的に縮小してアップロードする。
OpenPNEおよびサーバー側のアップロードサイズ制限の上限をアップすることで回避することはできますが、
サーバーのディスク容量の切迫にも繋がるため、リサイズし保存する機能を追加する。


Related issues 3 (2 open1 closed)

Related to OpenPNE 3 - Enhancement(機能追加・改善) #3219: 投稿画像を自動的に圧縮する機能を実装するNew(新規)2012-09-28

Actions
Copied to OpenPNE 3 - Backport(バックポート) #3563: 画像アップロード時に上限サイズを超えるファイルは自動的に縮小してアップロードするFixed(完了)Akihiro KOBAYASHI2014-02-21

Actions
Copied to OpenPNE 3 - Backport(バックポート) #3565: 画像アップロード時に上限サイズを超えるファイルは自動的に縮小してアップロードするNew(新規)2014-02-21

Actions
Actions #1

Updated by Mutsumi Imamura almost 11 years ago

Actions #2

Updated by Mutsumi Imamura almost 11 years ago

Actions #3

Updated by Yuya Watanabe almost 11 years ago

対象 pull request

able to resize the uploaded image when its size is larger than assigned. by AkihiroKOBAYASHI · Pull Request #104 · openpne/OpenPNE3
https://github.com/openpne/OpenPNE3/pull/104

Actions #4

Updated by Yuya Watanabe almost 11 years ago

同じような名前のコミットが複数あり,最終的に必要なコミットが不明です.最終的なマージコンフリクトの解消は master マージ時に行いますので本チケットの修正に則した内容のコミットのみのプルリクエストでお願いします.

b202426 able to resize the uploaded image when its size is larger than assigned.
28047ed start
4ad8194 able to resize the uploaded image when its size is larger than assigned.
dc57650 start
d897a1d Merge branch 'master' of https://github.com/AkihiroKOBAYASHI/OpenPNE3
30fb274 Merge branch 'master' of https://github.com/AkihiroKOBAYASHI/OpenPNE3
29cecef able to compress the uploaded image when its size is larger than assigned size
3b8dc51 able to resize the uploaded image when the size of it is larger than that of assigned
f20e9a3 able to read exif data and orient the direction to repair of the uploaded image
Actions #5

Updated by Yuya Watanabe almost 11 years ago

フィードバック

下記部分 ssl_selectable_actions に default/customizingCss が追加されている意図はなんでしょうか?

config/OpenPNE.yml.sample
137 # SSL を使用するかどうかをメンバーが選択できるアクション
138 # Actions that are SSL selectable by SNS member
139 ssl_selectable_actions:
140 
141   # PC 版設定
142   # for pc_frontend
143   pc_frontend: ["default/customizingCss"]
Actions #6

Updated by Yuya Watanabe almost 11 years ago

フィードバック

すべて save() メソッドの中に記述されていますが,この辺りは「縮小する」という明確な目的の一連の流れが存在するため,名前付けしてメソッドとして抽出してもらったほうがよいです.

メソッド抽出の具体的なメリットは リファクタリングという書籍の 「Extract Method(メソッドの抽出)」の項目が参考になります.

Actions #7

Updated by Yuya Watanabe almost 11 years ago

  • Status changed from New(新規) to Pending Fixing(修正待ち)
Actions #8

Updated by Mutsumi Imamura almost 11 years ago

https://github.com/openpne/OpenPNE3/pull/108 でプルリクエストが来ています

Actions #10

Updated by Mutsumi Imamura almost 11 years ago

  • Status changed from Pending Fixing(修正待ち) to Pending Review(レビュー待ち)
  • % Done changed from 0 to 50

プルリクエストが来ていますのでステータスを変更します。

Actions #11

Updated by Mutsumi Imamura almost 11 years ago

  • Assignee set to Akihiro KOBAYASHI
Actions #12

Updated by Akihiro KOBAYASHI over 10 years ago

Actions #13

Updated by kaoru n almost 8 years ago

  • Status changed from Pending Review(レビュー待ち) to Rejected(差し戻し)
  • Assignee deleted (Akihiro KOBAYASHI)
  • Target version changed from OpenPNE 3.9.0-old to OpenPNE 3.9.0

対象バージョン変更により修正内容の確認が必要であるため差し戻します。

Actions #14

Updated by kaoru n almost 5 years ago

  • Target version changed from OpenPNE 3.9.0 to OpenPNE 3.10.x
Actions

Also available in: Atom PDF