diff --git a/app/views/admin/galleries/_form.html.erb b/app/views/admin/galleries/_form.html.erb
index 14a1315..d3822c9 100644
--- a/app/views/admin/galleries/_form.html.erb
+++ b/app/views/admin/galleries/_form.html.erb
@@ -135,7 +135,14 @@ input.minicolors-input{
<%= t('gallery.thumb_resize_reference') %>
- <%= f.select :resize_gravity, [["---#{t("default")}: #{t("gallery.gravity.#{AlbumSetting::ResizeGravities[0]}")}---",nil]]+AlbumSetting::ResizeGravities.collect{|v| [t("gallery.gravity.#{v}"),v]} %>
+ <%
+ default_resize_gravity = AlbumSetting::ResizeGravities[0]
+ setting = AlbumSetting.first
+ if setting
+ default_resize_gravity = setting.resize_gravity
+ end
+ %>
+ <%= f.select :resize_gravity, [["---#{t("default")}: #{t("gallery.gravity.#{default_resize_gravity}")}---",nil]]+AlbumSetting::ResizeGravities.collect{|v| [t("gallery.gravity.#{v}"),v]} %>