• Profile pictures are not displayed on the profile page nor are they displayed on the avatar models page. I turned on WordPress debug to see the error logs. It shows that ImageMagick which was required for W4OS, does not know how to dcode J2k files. This is the format used by Opensim for profile pictures. “Uncaught ImagickException: no decode delegate for this image format `J2K’ @” Are there any recommendations on how to resolve this isssue in W4OS?

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter eamitchell1

    (@eamitchell1)

    [07-Feb-2024 20:12:13 UTC] PHP Fatal error: Uncaught ImagickException: no decode delegate for this image format `J2K’ @ error/blob.c/BlobToImage/361 in /srv/www/wordpress/wp-content/plugins/w4os-opensimulator-web-interface/templates/assets-render.php:127
    Stack trace: 0 /srv/www/wordpress/wp-content/plugins/w4os-opensimulator-web-interface/templates/assets-render.php(127): Imagick->readimageblob() 1 /srv/www/wordpress/wp-content/plugins/w4os-opensimulator-web-interface/templates/assets-render.php(197): w4os_asset_get() 2 /srv/www/wordpress/wp-includes/template-loader.php(106): include(‘/srv/www/wordpr…’) 3 /srv/www/wordpress/wp-blog-header.php(19): require_once(‘/srv/www/wordpr…’) 4 /srv/www/wordpress/index.php(17): require(‘/srv/www/wordpr…’) 5 {main}

    thrown in /srv/www/wordpress/wp-content/plugins/w4os-opensimulator-web-interface/templates/assets-render.php on line 127

    Plugin Author Olivier van Helden

    (@magicoli69)

    That’s strange, I never installed anything special for imagick to handle j2k, only php-imagick extension.

    What is your setup? (OS, versions of php, apache, wp…)

    Thread Starter eamitchell1

    (@eamitchell1)

    This is the current versions on my server. I tried a few updates since then but it still won’t display the images from my Opensim server. It knows they are there and uses a filler image. I try to keep everything current.

    Distributor ID: Ubuntu
    Description: Ubuntu 20.04.6 LTS
    Release: 20.04
    Codename: focal

    mysql Ver 8.0.36-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))

    PHP 7.4.3-4ubuntu2.20 (cli) (built: Feb 21 2024 13:54:34) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.3-4ubuntu2.20, Copyright (c), by Zend Technologies
    Server version: Apache/2.4.41 (Ubuntu)
    Server built: 2024-01-17T03:00:27
    WordPress 6.5.2.

    Thread Starter eamitchell1

    (@eamitchell1)

    Oops? W4OS is Version 2.7.6 |

    Plugin Author Olivier van Helden

    (@magicoli69)

    Your issue seems related to imagemagick, not the plugin itself. I found some related issue, and one of them is that ImageMagick requires OpenJpeg to decode j2k files, which is not always installed automatically. You might need to install it manually.
    (I found it in package libopenjp2-7 but your mileage may vary)

    Please try and tell me if it works. If it works, it might be worth a few notes in the installation instructions.

    Thread Starter eamitchell1

    (@eamitchell1)

    Thank you for the input, libopenjp2-7 is already installed in the most recent version. I also removed and reinstalled ImagaMagik but still no joy. I added screenshots of the profile page in W4OS and Opensim. Just in case it stimulates some ideas. I will continue plugging away at it.

    W4OS profile:

    https://drive.google.com/file/d/1nd7wqnr3ml7vI6YgnsMGAUSyO9p6iMgc/view?usp=drive_link

    OS profile:

    https://drive.google.com/file/d/1dvYU6-wQuhUaXig9ZAF7eOKho-xGG11T/view?usp=drive_link

    Plugin Author Olivier van Helden

    (@magicoli69)

    We need to make sure that imagemagick is working properly before trying any further with the plugin. As long as you get errors like “no decode delegate”, there is no way it could work anywhere, including in the plugin. Here are some example tests you could try:

    1. Try converting a jp2 file from command line and check the result image:
    convert /your/opensim/dir/bin/assets/TexturesAssetSet/brick_mono.jp2 image.jpg

    2. Try converting a jp2 file from a simple php script. Create a script convert-test.php

    <?php
    
    $inputFile = '/your/opensim/dir/bin/assets/TexturesAssetSet/brick_mono.jp2';
    $outputFile = 'converted.jpg';
    
    $image = new Imagick();
    $image->readImage($inputFile);
    $image->setImageFormat('jpg');
    $image->writeImage($outputFile);
    $image->destroy();
    
    echo 'Image converted successfully.';

    Then run
    php7.4 ./convert-test.php
    and check any error message, verify the result image (converted.jpg)
    (make sure to specify php7.4, according to the php version used by your web server)

    3. copy the php script and the source jp2 image in your web root and test it through your web server (https://yourgrid.org/convert-test.php). Make sure to adjust $inputFile (in some installation, php cannot access the whole disk, hence the copy of the image alongside the script).

    As long as these tests fail, I am afraid I can’t help any further, you’ll have to check php and imagemagick documentation and/or forums

    Thread Starter eamitchell1

    (@eamitchell1)

    You are right! I tried your php script from from cli and received the following error:

    PHP Fatal error: Uncaught ImagickException: no decode delegate for this image format `J2K’ @ error/constitute.c/ReadImage/572 in convert-test.php:7
    Stack trace: 0 convert-test.php(7): Imagick->readimage() 1 {main}

    The problem is ImageMagick. I will search in that direction. Thank you.

    Hello eamitchell1, I registered on your Opensim grid via your website, I noticed that you have several avatars available, BOM or not, but what I notice is that the photos are not displayed not, just gray, empty squares.
    Where did you go through to already obtain this feat, I only have a small thumbnail of a broken link. lol
    in any case, I visited your opensim grid, my avatar is KarlFisher7 Forest, I asked you as a friend. Thank you for your work and your skill.
    By the way, I only speak French, I use Google Translate, don’t blame me if there are translation errors ??

    Hello Olivier van Helden and respect for your plugin w4os !!

    I just successfully installed Imagemagick, everything works. If anyone needs help, I can provide information on the subject.

    unadecalmasala

    (@unadecalmasala)

    Hi @karlfisher

    I would very much appreciate whatever information you can provide on this. I run Ubuntu 22.04, php 8, Apache, WP 6.6.1 and w4os 2.7.7

    I installed imagemagick and libopenjp2-7, but imagemagick is not working.

    Thank you!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Profile picture are not showing on W4OS’ is closed to new replies.