added preview image crop for model Product
This commit is contained in:
parent
cf8abf27ae
commit
5290e33ea7
|
|
@ -357,7 +357,6 @@ THUMBNAIL_ALIASES = {
|
|||
'news_editor_web': {'size': (940, 430), }, # при загрузке через контент эдитор
|
||||
'news_editor_mobile': {'size': (343, 260), }, # через контент эдитор в мобильном браузерe
|
||||
'avatar_comments_web': {'size': (116, 116), },
|
||||
'product_preview': {'size': (300, 260), },
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -380,6 +379,7 @@ SORL_THUMBNAIL_ALIASES = {
|
|||
'news_editor_web': {'geometry_string': '940x430', 'crop': 'center'},
|
||||
'news_editor_mobile': {'geometry_string': '343x260', 'crop': 'center'}, # при загрузке через контент эдитор
|
||||
'avatar_comments_web': {'geometry_string': '116x116', 'crop': 'center'}, # через контент эдитор в мобильном браузерe
|
||||
'product_preview': {'geometry_string': '300x260', 'crop': 'center'},
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user