Web Analytics

Fill the form & Get Installation Support

Any Question or Concerns?
Let's discuss

    Image resize through programmatically for only one particular product

    Related articles

    I faced an issue with one particular product that wasn’t generating the cache & resized images. And there is Magento’s default command to generate the catalog images, but it only generates all the product images at that time so that procedure wasn’t an option to choose.

    So to solve the problem, I created one script file on the root of the Magento directory and added the static product id in that script, so it could generate the resized Images as per theme images for that particular product.

    Step 1: Create a resize_image.php on the root directory of Magento and add the below code in the file.

    Now, you have to run this file through a browser e.g. http://example.com/resize_image.php and you can see that all the images of that product are resized as per the theme images.

    Contact us for scientific strategies to increase your site conversions

      Connect With Us