249
249
thumb, thumb_cache, size, pnginfo, **options):
250
250
thumb_cache.thumbnail(FREEDESKTOP_SIZE[cache_size_label],
252
253
temp = system.TempFile('.png')
253
imtools.save(thumb_cache, temp.path, pnginfo=pnginfo, **options)
255
imtools.save(thumb_cache, temp.path, pnginfo=pnginfo, **options)
256
258
os.chmod(thumb_filename, 0600)
257
259
if cache_size_label == size_label:
258
260
# make thumbnail as it is smaller than this thumb cache size