Mascara Reviews :: home :: Wascally Wabbits
I'd like to give some big ups to the Gallery team. These are some seriously dedicated folks who put out a great gallery script all of free!
I've been having a little problem with thumbnails ever since I installed Gallery 2 and it seems to have stemmed from when I imported my albums from Gallery 1.4.4. The issue was that I hacked 1.4.4 to give me square thumbnails (instead of landscape or portrait ones). When G2 imported these square thumbnails in, it sucked in a bad set of settings to one of the columns in the database. Therefore to fix (coutesy of Mindless over at the Gallery forum):
Solution: backup your database and then manually update the g_derivativeOperations column of g2_Derivative table to remove all those crop parameters from the G1 migration. After this clear your db and derivative cache and rebuild thumbnails. If every thumbnail in your gallery is the same size this may be as simple as: UPDATE g2_Derivative SET g_derivativeOperations = 'thumbnail|150' where g_derivativeOperations LIKE '%crop%'; (replace 150 with whatever size..) If you have multiple sizes then I guess an update for each.. UPDATE g2_Derivative SET g_derivativeOperations = 'thumbnail|175' where g_derivativeOperations LIKE 'crop|%;thumbnail|175'; for each different size..