image renaming

Jul 122015 Tagged with , , 0 Responses

PHP script for renaming files

You might downloaded large amount of images or PDFs while doing web scraping of e-commerce store products, blog posts and in many other cases. Most of web scraping tool¬†provides file downloading either they are csv, vcf, images (jpg,jpeg,gif,png), pdf or other kind of files but many of them do not provide way to rename them or add extension to them if it’s not present.

php script to rename images

I have encountered a problem specially with image files – many websites have images but they do not have the extension and web scraper just download files as it is as example given below, they are the file names downloaded using web scraper but they don’t have extension .jpg or .png!! Read More…