Comments (4)
@bealdav With fs_product_multi_image, when you upload an image, the original image is preserved as main_image and an image_medium is also generated to use as thumbnail (128x128) into odoo UI see https://github.com/OCA/storage/blob/16.0/fs_image/models/fs_image_mixin.py.
It's on purpose that I decided to only generate one thumbnail from the original image with a size of 128x128 since it's the common size used into the UI to display the image on forms and kanbans. After some research into the code, it seems that the others sizes are only used by the website addons and are therefore useless by default.
When this addon is used next to the shopinvader_search_egine_image addon you have to know that the images make available to the search engine are not the original ones. They are copies of the main image resized to the sizes configured on the search engine backend and named with an localized and SEO compliant name based on the name of the related product.
from storage.
Thanks a lot for this answer and all this huge work on this repo
from storage.
@bealdav TIL while diving into the odoo's code.... Images with extensions png,jpeg,bmp,tiff are resized in any case by default to 1920x1920 (see https://github.com/odoo/odoo/blob/17.0/odoo/addons/base/models/ir_attachment.py#L324 for details)
from storage.
Related Issues (20)
- Storage Image widget not work HOT 1
- Migration to version 16.0 HOT 3
- Access Forbidden HOT 2
- [16.0] use fsspec for implementing backend HOT 4
- Use S3 Backend for public Website product HOT 1
- [16.0] Storage Addons Refactoring RFC HOT 4
- Error when creating a new attachment HOT 1
- Migration to version 17.0 HOT 5
- exisiting attachments migration HOT 5
- When directory_path is set the wrong protocol is used HOT 1
- Documents app preview issue HOT 1
- [16.0] fs_storage + EDI: connection closed after some time HOT 5
- S3 on AWS HOT 1
- Error while installing
- How does it work
- Module tries to add already existing columns when installing a second time HOT 1
- Module does not work with S3 when deployed in Odoo docker container image
- [17.0] fs_attachment unable to save Attachment Rules HOT 1
- [17.0] fs_storage: Connection closed after some time HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storage.