I'm trying to import images from a remote destination and automatically add them to an item of content i.e article, custom module, profile, etc
So far I am:
Importing image.
Inserting into bx_photos_main
Saving image at /modules/boonex/photos/data/files/__ID__.jpg
Resizing the image in various sizes and saving as:
/modules/boonex/photos/data/files/__ID___ri.jpg
/modules/boonex/photos/data/files/__ID___rt.jpg
/modules/boonex/photos/data/files/__ID___t.jpg
/modules/boonex/photos/data/files/__ID___m.jpg
Updating the item of contents "thumb" field as the image ID
However, all that happens is the content thumbnail appears. It registers there's the correct number of images when you view the content. i.e theres the correct number of mini thumbnail icons to click on... but they are blank.
Image is definitely uploaded.
Any ideas? Have I missed somewhere I have to insert into the database?