Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Poll
Were you able to import images into your Magento store via csv or XML
Yes 122
No 250
Total Votes: 372
You must be a logged-in member to vote
Image Import—Does It Work? 
 
Giannis-M-
Jr. Member
 
Avatar
Total Posts:  24
Joined:  2010-06-24
Greece
 

Thank you \"A Joyful Affair\”! I didn\’t even have to go to that thread. And of course thank you srinigenie. My god I love this software.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Adam Moss
Sr. Member
 
Avatar
Total Posts:  248
Joined:  2009-02-11
Birmingham, UK
 

I’m gonna give this a go later today - I’ve had to import a lot of images for my store and I was disappointed when I thought I couldn’t do it with Dataflow. I just know it’s gonna work perfectly!

 
Magento Community Magento Community
Magento Community
Magento Community
 
mptorr
Member
 
Avatar
Total Posts:  62
Joined:  2010-04-06
 

@StevenDiz

Unfortunately the “trim” solution did not work for me—using Mage 1.4.0.1

 
Magento Community Magento Community
Magento Community
Magento Community
 
DirectLowVoltage
Jr. Member
 
Total Posts:  30
Joined:  2009-02-19
 

all file names are case sensitive… keep that in mind when creating your xml or csv database… it will work great but you need to be EXACT on everything from your headers to file names ect....

also the STORE header should be the store name you are trying to modify… if you leave it admin you might miss out on things..

I have imported tons of files with pictures, picture descriptions and all that good stuff.... from versions 2.something all the way to 4.11

 
Magento Community Magento Community
Magento Community
Magento Community
 
dooneyandbourke
Jr. Member
 
Total Posts:  10
Joined:  2010-09-24
 

I tried it, it works, thank you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
StevenDiz
Jr. Member
 
Avatar
Total Posts:  2
Joined:  2010-06-16
 
mptorr - 14 September 2010 06:35 PM

@StevenDiz

Unfortunately the “trim” solution did not work for me—using Mage 1.4.0.1

Sorry to hear that. I’m not sure what else the issue might be. This basically solved all of my image import issues.

I should point out that this change is also required in 1.4.2. (My client just decided to update to this new version, so I checked the new code base for this issue.) So, if you update your Magento installation, you might want to re-apply this change there as well.

 
Magento Community Magento Community
Magento Community
Magento Community
 
wmcfer1
Member
 
Avatar
Total Posts:  73
Joined:  2010-11-16
Baton Rouge, Louisiana
 

So, the answer for this issue is no?

 
Magento Community Magento Community
Magento Community
Magento Community
 
leopoldo69
Member
 
Total Posts:  37
Joined:  2010-10-06
 

For Magento 1.4.1, i have changed the ligne 947

public function addImageToMediaGallery($file, $mediaAttribute=null, $move=false, $exclude=true)
BY
public function addImageToMediaGallery($file, $mediaAttribute=null, $move=false, $exclude=false)

it can import your data in xml or csv without the box “exlcure” checked

but my images (small_image) does not appear. Why?  Please help me.  Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
dweeves
Enthusiast
 
Total Posts:  877
Joined:  2010-06-26
FRANCE
 

you could take a look at magmi , that may solve your problems, it can handle remote urls and much much more.
and also: blazing speed!!!!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
kazava
Jr. Member
 
Total Posts:  2
Joined:  2010-12-25
 

Thanks guys.
The following steps basically solved my problem to import images.
public function addImageToMediaGallery($file, $mediaAttribute=null, $move=false, $exclude=false)
...
$mediaGalleryAttribute->getBackend()->addImage($this, trim( $file), $mediaAttribute, $move, $exclude);

The only problem now I have is importing multiple images in thumbnail section.
I already tried the following formats in thumbnail column but not working.

/1.jpg;/2.jpg
“/1.jpg”;\"/2.jpg\"
“/1.jpg”,\"/2.jpg\"
/1.jpg,2.jpg
/1.jpg;2.jpg
“/1.jpg”;\"2.jpg\"
“/1.jpg”,\"2.jpg\"

I appreciate any help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Relja
Jr. Member
 
Avatar
Total Posts:  19
Joined:  2010-10-22
 

Hi everyone, I’m importing the images programmatically, using addImageToMediaGallery function on each of the products. It works fine but I have a problem that it only imports images to each product, but it doesn’t set any image as current so I still need to enter each product and set the current image.

Is there any procedure I can use for that? Because traversing each product is not an option since there is about 2000 of them.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ebaghern
Jr. Member
 
Total Posts:  11
Joined:  2011-02-12
 
storm.earth.fire - 01 March 2011 02:23 AM

Hi everyone, I’m importing the images programmatically, using addImageToMediaGallery function on each of the products. It works fine but I have a problem that it only imports images to each product, but it doesn’t set any image as current so I still need to enter each product and set the current image.

Is there any procedure I can use for that? Because traversing each product is not an option since there is about 2000 of them.

Im having this exact issue. Let me know if you come across a fix.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dickd
Jr. Member
 
Total Posts:  15
Joined:  2010-10-15
 

I have a fewMagento installs and import structure works fine with
“/” before image in csv
Lower case file names
upload to media/import

This is on 14.1.1 (Holding off upgrade due to template issue)

Now a new install with 15.0.1 the method for importing the images does not work any more , has any one else experienced this with the new install 15.0.1

 
Magento Community Magento Community
Magento Community
Magento Community
 
gammafx
Jr. Member
 
Avatar
Total Posts:  6
Joined:  2010-04-25
 

Same problem with v1.5.0.1. I’ve opened up a bug report:
http://www.magentocommerce.com/bug-tracking/issue?issue=11085

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tonygetz
Jr. Member
 
Total Posts:  19
Joined:  2010-06-15
 

I\’m having the same issue. Image import on 1.5.0.1 is not working unless something has changed?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top