Forest header image

Symfony Finland
Random things on PHP, Symfony and web development

Using a eZ Platform / eZ Publish 5.4 for local development without images

eZ Platform and eZ Publish 5.4 both use the imagine bundle for scaling images. It can be tricky to work in a local environment without images. One way to work without images is to modify the code to always use a single image.

Some steps to get you on the right path:

  • Open the file: vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Imagine/AliasGenerator.php
  • Replace $originalPath at line ~97 with a static reference, e.g: $originalPath = '4/9/6/2/1852694-1-nor-NO/54399_binary_11552.jpg';

Written by Jani Tarvainen on Wednesday March 22, 2017
Permalink -

« Generate link in PHP using eZ Platform API - Checking if user has permission to edit content in eZ Platform using the API »