![]() |
|
wrong custom size with png file - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: wrong custom size with png file (/thread-13254.html) |
wrong custom size with png file - vincent3569 - 2019-02-25 hi I have something going wrong with png files. when I try to insert a custom sized image with tinyZenpage of a png image, I have a wrong cropped picture. You can have a look here: https://test.vincentbourganel.fr/news/test-png-files/ wrong custom size with png file - acrylian - 2019-02-25 I have never heard of "dng" files.Judging by your site you apparently mean "png" files? png files do not have (support) meta data like jpgs do so that might be an issue here. But the size should be included. But be sure you don't use "cleaned for web" versions as that strips all extra info often. GD or Imagick? To be able to reproduce any issue we need the values you have used with tinyZenpage. Please add a screenshot of each to that page so we can try ourselves. wrong custom size with png file - vincent3569 - 2019-02-25 my mistake, I was speaking about png files (but btw, DNG files exist: https://en.wikipedia.org/wiki/Digital_Negative) you can use full image here: https://test.vincentbourganel.fr/albums/images/illustrations/2019.png. the picture size of my theme is 800px (for sized image). the custom size used is 400px. btw, I have the same trouble with gig image (example will follow) wrong custom size with png file - vincent3569 - 2019-02-25 as told before, same trouble with gif files: with custom size, the picture is cropped and "white" is added at the bottom of the original picture wrong custom size with png file - acrylian - 2019-02-25
Sure but not a webformat Zenphoto or any other tool could natively process ;-)
Again what are the settings you used to crop? I don't see anything related to cropping there. And also again what library: GD or Imagick?
White usually means transparency got lost. We actually fixed that for png/gif in the support build (which I assume you are using anyway). wrong custom size with png file - vincent3569 - 2019-02-25 I use GD library. wrong custom size with png file - vincent3569 - 2019-02-25 you are right, white means transparency :-) you can have a look on the generated cache image here: https://test.vincentbourganel.fr/cache/images/illustrations/carte-co_220.gif wrong custom size with png file - acrylian - 2019-02-25 Above you wrote:
So the issue is you get a somehow cropped picture although you wanted an uncropped one? It cannot be a "wrong cropped" image because a "sized image" is of course never cropped. Don't mean to be picky as English is of course not the native language for both of us. Just don't want to investigate in the wrong direction! ;-) wrong custom size with png file - vincent3569 - 2019-02-25 for png file, I want a sized image (set 400px, supposed to be the width as it is the longest size) have a look on the generated picture: https://test.vincentbourganel.fr/cache/images/illustrations/2019_400.png in fact, it is the issue with png and gif file. hope that's more clear. wrong custom size with png file - acrylian - 2019-02-25 Okay, so far understood. It is only an issue with tinyZenpage? You don't get this on the theme itself, right? wrong custom size with png file - vincent3569 - 2019-02-25 I disabled tinymce
but the issue is the same (I have a 250 sized picture on the heigh size and not the width, so the picture is cropped and transaprency is added). again, have a look here: https://test.vincentbourganel.fr/news/test-png-files/ wrong custom size with png file - acrylian - 2019-02-25 I can reproduce the issue with the first image that is cropped where it shouldn't. The 2nd even on your site seems to be correctly scaled. I don't see any white or cropping actually. tinyZenpage probably does things wrong. Wanted to change that to a content macro anyway some time. That also can better cover missing images and such. Maybe I should do this now… wrong custom size with png file - fretzl - 2019-02-25 It's not specifically a tinyZenpage thing. It's a png/gif thing. wrong custom size with png file - acrylian - 2019-02-25 Well, I tried both example images and I don't see anything wrong in the Zenpage theme. However that is using maxspace images and not standard sized images on the image page. But even with basic all looks as it should to me… wrong custom size with png file - acrylian - 2019-02-26 I also tried on the test install with the basic theme using standard sized images on our server and cannot reproduce it… wrong custom size with png file - acrylian - 2019-03-01 Please try the support build that should work with pngs/gifs correctly now. wrong custom size with png file - vincent3569 - 2019-03-01 hi, wrong custom size with png file - acrylian - 2019-03-01 Thanks for the confirmation. |