Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using signwriter in a client's site, to generate images for a product (like 'type your message'), but I found out, that even though it works fine in Chrome/Firefox/Safari, the images get generated with broken text in IE.
The image is generated fine, but the greek characters are not displayed correctly.
Any ideas?
In the 2 images, you can see how the image is generated in chrome and how it is created in IE.
The code I use to create the images is
if (isset($_GET['bg'])){
$signwriter->foreground = $_GET['col'];
$signwriter->background = $_GET['bg'];
$signwriter->fontsize = $_GET['tsize'];
}
$signwriter->imagetype = 'jpeg';
$signwriter->width = 260;
$signwriter->height = 70;
$signwriter->textalign = 'center';
$text = $_GET['mytext'];
$output_string = signwriter_image($text, $signwriter);
Comment | File | Size | Author |
---|---|---|---|
sign_ie.jpeg | 1.93 KB | lemonidas | |
sign_chrome.jpeg | 1.96 KB | lemonidas |
Comments
Comment #1
lemonidas CreditAttribution: lemonidas commentedfixed.
Nothing to do with signwriter, everything to do with ajax call and encoding :)
Comment #1.0
lemonidas CreditAttribution: lemonidas commentededit code snippet