sitewards / import_image_memory_leak_fix
Fix a memory leak issue with the product image import process.
Installs: 6 714
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 27
Forks: 2
Open Issues: 0
Type:magento-module
Requires
- php: >=5.5
This package is not auto-updated.
Last update: 2025-01-27 07:56:22 UTC
README
Issue
Product import with images easily goes over 4Gb on memory with just couple hundreds of products. The reason for this is that the image model is never properly destoried.
Fix
Use a different image processor than Varien_Image
.
Add a destruct
method into this new processor and register it on shutdown.
Rewrite Mage_Catalog_Helper_Image
to change the method validateUploadFile
.
Call new processor, call destruct and then return the mime type of the image.