Image preview / thumb not showing in Drupal 8

Created on 9 June 2018, about 6 years ago
Updated 22 April 2024, 5 months ago

I am facing a strange issue regarding image preview in Drupal 8. I am not sure in which category, I need to post this issue. I tried will all the patches available in the net
-disable "itok"
-set permission 775 to sites/default/files/styles directory and subdirectory
-even changed the default file permission from 0664 to 0775
-disable Options in .htaccess file
None is working

The image below is a preview page by "focal point" module. You see the preview is not showing. But if i click on preview, the image is showing at the bottom. I checked in the corresponding folder all preview images are there. A sample url is like this:

`/sites/default/files/styles/facebook/public/assets/Q292ZXIyMDExLTA2LTIzIDE5OjE2OjI3.jpg`

Now if I go directly to that image in browser, its displaying correctly. And after that, if I refresh the focal point preview, now that image will display. But if I clear the varnish cache, everything will be as before.

In whole site, where there is image preview, after upload or any preview, its happening the same.

The system is based on Drupal 8.4.x
- Its in Acquia Hosting
- Its using Media Entity, Media Entity Image, Entity Browser, Crop modules etc

I am banging my head almost two days, no clue of this issue. If anyone can help, will be highly appreciated!!

💬 Support request
Status

Closed: works as designed

Version

10.0

Component
Image system 

Last updated about 11 hours ago

Created by

🇧🇩Bangladesh shafiqhossain

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India abuhozaifa Delhi

    Hi Team,

    Whenever I add an image, it appears to be added but the thumbnail is shown as broken and when I right-click, it is shown again with a loaded image. I have already checked the permission.

    Current Step:

    1. Sudo chmod -R 0777 files
    2. Sudo chmod -R 0777 files/styles
    3. Sudo chmod -R 0777 web

    Nothing is working! but the image is created and stored in the directory.

    Thanks,

Production build 0.71.5 2024