Posts by Dams

    Hi everyone,

    I'm trying to display a list of news with a date for each of them using Perch.

    The website is in English and in French. I have no problem displaying the months in English. It is also working in French except for the months with an accent like "février, décembre, etc." which aren't displayed at all (in fact the whole date doesn't show).

    Here is what I've tried :

    My website is set to UTF-8.

    When the user switches to French, PHP sets the local time to French.

    1. setlocale(LC_TIME,"fr_CH");

    And here is my code in Perch to display the date. :burd1:

    1. <p><perch:content id="en_news_date" type="date" label="Date News EN" size="m" format="%e %B %Y" native required></p>

    And a few screenshots of the result :

    As you can see on the right, "décembre" in French is not showing up.

    Does anyone have an idea of what's happening here ? None of my researches were successful... it seems to me that it might be a Perch-related issue.

    Thank you in advance for your help. :)

    Hi, it's define('PERCH_IMAGE_LIB', 'imagick'); to turn on Imagemagick.h

    Thank you! I was suspecting that it would be something like this, but I misunderstood the doc.

    It’s working perfectly fine with the png.

    Unfortunately, gif resizing is worst than before. Do you know if there is something we can do about it using imagemagick? Otherwise I will explore the other propositions of third-party or multiple file upload.

    Thank you both for your answers.

    I'm new at all those php image resizing and I've tried the following :

    A) According to Perch diagnostics the server has both GD and ImageMagick :

    B) So I set the following in perch config.php

    1. define('PERCH_IMAGE_LIB', true);

    Is that right?

    c)I have now the following issues:

    - When I upload a new image perch doesn't generate a preview and the load button become empty after I saved the change (even if the picture is added and displayed on the website).

    - The second issue I have is that it seems perch doesn't make multiple version of this image. The images uploaded before were renamed something like xxx-w500.png, xxx-w1000.png, xxx-w2000.png and used accordingly. Now I just have a xxx-1.png which stays the same independently of the browser width.

    I've probably missed something.

    You won't be able to supply multiple image sizes of the gif using Perch's resizing features. As when resizing the Gif it will effectively just save a poster of it, hence why the 2000px still works whilst the others, don't.

    As gif are only a small percentage of the assets, it is possible to manage them differently and prepare different sizes before the upload... even if I would have preferred an automatic solution.

    Do you guys have an idea?


    First of all I would like to say that I find this CMS great and that you've done an amazing job with it. :thumbup:

    I'm creating a responsive website and wish to serve multiple image sizes in a srcset. The user only upload one picture (2000px wide) and I let perch create 3 versions (500px, 1000px, 2000px) of it.

    Everything works fine except that smaller versions of gif don't play anymore. But if I resize the browser window and that the browser loads the 2000px version, this version plays fine. [This issue is on Firefox, chrome and safari]

    I have a similar issue with png images with a white background. The larger version is fine, but smaller version show light gray horizontal lines all across the images. [This issue doesn't append on safari but on chrome and Firefox]

    The screenshot make the lignes very difficulte to see but they do exist on the first image.

    Am I doing something wrong here? :/