Odoo Help


Export product image name and it's size

on 2/24/15, 5:27 AM 2,784 views


I want to export product image data from odoo database, have tried xml rpc script to get the product image name and it's size but 
did't get it.

can any one know how to export the product template images name and it's size.

I am fine with bash script or Psql script.

Thanks in advance.

Any suggestions are welcome.

on 2/24/15, 8:18 AM


I'd recommend looking into the CamptoCamp Odoo / Magento Connector:


If I remember right I think either the 7.0 or 8.0 projects may have implemented something along these lines.

Luke Branch
on 2/24/15, 8:39 AM


Luke Branch
on 2/24/15, 8:39 AM

How magento connector will help ?

on 2/24/15, 9:38 AM


I remember there being a discussion about these types of features being integrated into the connector if i'm not mistaken.

Are you trying to export base64 image data, or convert it into it's original uploaded format?

Max's various repositories for product upload and batch image upload may be of help:


Luke Branch
on 2/24/15, 9:18 PM
On 2/25/15, 4:26 PM

To do it in plain sql you can use:

select name, length(image), length(image_medium), length(image_small)
from product_template
where image is not null

The actual image file name that was imported is not stored unfortunately in case that is what you needed.


"The actual image file name that was imported is not stored unfortunately in case that is what you needed." I fell that This will negatively impact the reuse of these images for any "Odoo" website to be built according to the mark-up principles pushed by Google (which emphasize the need to publish images with a name that make sense for robots

AD LIBITOM, michel Guénard
on 2/25/15, 7:26 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/24/15, 5:27 AM
Seen: 2784 times
Last updated: 3/16/15, 8:10 AM