symphonycms / jit_image_manipulation

Just in Time Image Manipulation for Symphony CMS
http://symphonyextensions.com/extensions/jit_image_manipulation/
Other
25 stars 42 forks source link

Caching not working with External image, isImageAlreadyCached problem #137

Open wdebusschere opened 8 years ago

wdebusschere commented 8 years ago

Warning: GenericErrorHandler 2: filemtime(): stat failed for /Users/xxx/Sites/www.domain.com/workspace/hosting26.externalserverxxx.com/pictures/folders/2825AL.jpg on line 121 of file /Users/xxx/Sites/www.domain.com/extensions/jit_image_manipulation/lib/class.jit.php

Throws this error with function isImageAlreadyCached $parameters['last_modified'] = @filemtime(WORKSPACE . '/'. $parameters['image']);

nitriques commented 8 years ago

Which version of Symphony ? And jit ? I have a black image (which is a problem) but not the same as yours...

wdebusschere commented 8 years ago

Symphony 2.6.7 JIT Integration 2.0.2 The error only appears in the log Image status is always 200.. while the Image status of local images is 304 on a refresh.

nitriques commented 8 years ago

Hum... ok thanks. Still can't reproduce but still having a black image from cache

nitriques commented 8 years ago

I've boiled it down to transparent png, which gets their transparency ripped out when the file is save from cache, but I do not know how this happens...

nitriques commented 8 years ago

@wdebusschere Latest integration code should fix this. If you could confirm, that would be neat!

nitriques commented 8 years ago

@wdebusschere Lots of work has been made yet again, if you could confirm please. Thanks (but no rush)

wdebusschere commented 8 years ago

@nitriques

Perfect. + no more errors in the Symphony log 1st image = the remote image 2nd image = the same, but local version

screen shot 2016-08-02 at 11 11 24
nitriques commented 8 years ago

SUPER! Thanks!