Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

typo

Lukasz Biedrycki96077ccf48a2
diff --git a/scrapy/contrib/pipeline/images.py b/scrapy/contrib/pipeline/images.py
index f0d647e5e..a899fe53e 100644
--- a/scrapy/contrib/pipeline/images.py
+++ b/scrapy/contrib/pipeline/images.py
@@ -53,7 +53,7 @@ class ImagesPipeline(FilesPipeline):
buf.seek(0)
checksum = md5sum(buf)
width, height = image.size
- self.store.persist_image(
+ self.store.persist_file(
key, buf, info,
meta={'width': width, 'height': height},
headers={'Content-Type': 'image/jpeg'})