Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
9839 Lượt xem

The product.product Model has the following 5 fields for images:


image_1920

image_1024

image_512

image_256

image_128


I have a few of question here:

What does this number mean? Does this refer to a square image, for example 1920x1920 pixels?

What image size user should upload? Does Odoo expects 1920x1920 square image?

Does Odoo rescale images internally from 1920 to others?

Which of these images are used for hover-zoom on the website?


BTW I'm not an Odoo developer. I'm just a user. So I don't read any code.


Thanks,

Imran

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

There is nothing with the name of images, you can use any names, but the important thing how we defined that field. In the case of Images, we can specify it's height and width. If we define height 1024 and width 1024, for readability better to define the field with the property. so image_1920 is with height 1920 and width 1920.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 1 21
2342
2
thg 3 24
2501
0
thg 11 18
2998
1
thg 6 25
2104
2
thg 6 25
819