7935 Posts in 1536 Topics by 943 members
|Go to End|
30 March 2010 at 9:37am
Hi Uncle Cheese,
Just curious if you or anyone out there might be able to help me with a umask and/or permissions issue for the resample directories?
I built 200+ ImageGallery galleries, using a PHP script I wrote to make the directories, copy the source images and insert the SQL. But the 'resampled' images aren't being triggered when I load the Photos tab in the CMS or view it on the front-end. They generate anytime they're requested via HTTP and don't exist right?
I've noticed a few other posts in the forums mentioning similar issues, but no clear answer.
I appreciate your time.
30 March 2010 at 9:43am
Well, that's a pretty complex thing to do with a PHP script and some SQL queries. Are you sure it's just the resampled images that aren't appearing? My guess is those galleries and albums are empty. You added them as ImageGalleryImage objects? And created ImageGalleryItem records as their parents? And all of those have AlbumIDs?
30 March 2010 at 9:49am
Yep. Believe it or not, I think everything on the SQL side is correct. It took me about 8 hours to get it right, looping through a spreadsheet the client sent.
In the CMS, I see the images, with the correct ImageGalleryImage ID that relates to the File table, and the ImageGallery album, and the ImageGallery page, etc.
If I hover over the 'delete' icon I can see that it's the correct ID for that item, but I'm only getting the default document GIF.
I may have just made the assumption that SilverStripe will resample any image that it needs if the resampled image isn't available. Do you know if that's the case?
30 March 2010 at 1:43pm
You were right, it was in the SQL. For some reason, in my prototype gallery the original IDs in the File table had been reset.
|Go to Top|