Forums / Developer / How to update image object with php?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to update image object with php?

Author Message

Vytautas Germanavičius

Thursday 02 November 2006 9:30:44 am

I try to update list of products with PHP.
I wrote extension to read info from CSV file, which add product to my Exponential site, and updates info, if there are imported that product.
With text info i have no problems. But image even i overwrite original file, i update info in database, site shows old images, because import do not update resized version.

Has anyone idea, how to force EZ to create resized version of added image?

{set-block scope=root variable=cache_ttl}0{/set-block}

Claudia Kosny

Friday 03 November 2006 1:07:10 am

Hi Esu

Maybe you can try to delete them so the aliases are recreated the next time a template requests one. If you want to force recreation with the script have a look at the ezimagealiashandler.php, especially function imageAlias. Although this might take a while if you have lots of products.

Claudia