$config -> adminThumbOptions = array ( 'width' => 0, // max width of admin thumbnail or 0 for proportional to height for legacy use) 'height' => 100, // max height of admin thumbnail or 0 for proportional to width for legacy use) 'gridSize' => 130, // Squared grid size for images (replaces the 'width' and 'height' settings) 'scale' => 1, // admin thumb scale (1=allow hidpi, 0.5=always hidpi, 1.0=force non-hidpi) 'upscaling' => false, 'cropping' => true, 'autoRotation' => true, // automatically correct orientation? 'sharpening' => 'soft', // sharpening: none | soft | medium | strong 'quality' => 90, 'suffix' => '', ) Īnd you then attach a new array to $config->imageSizerOptions with a smaller set of key/value pairs, you wipe out: width, height, gridSize, scale, upscaling, autoRotation, suffix. If you have an array from wire/config.php like the imageSizerOptions: On my previous post I left only defaultGamma just to see actual value I used to fix the problem. 'sharpening' => 'none', // sharpening: none | soft | medium | strong 'quality' => 80, // quality: 1-100 where higher is better but bigger 'defaultGamma' => - 1, // defaultGamma: 0.5 to 4.0 or -1 to disable gamma correction (default=2.0) ) $config -> imageSizerOptions = array ( 'cropping' => 'north', // Crop North (top), may also be just "n". Maybe you can provide a link to that image online, or via PM to this is how I have it. What processes gets it passed through before the upload to PW? Where does the source- or master image comes from? I want to make sure that I always provide the correct path to the file across deployments using slightly different ImageMagick setups and/or versions. Disabling "defaultGamma" is usefull if you gets clippings in dark to black regions.Īccording to what describes, my first question is: "How does the original image looks like?" If this already has arctefacts, you ever will get artefacts also in quality 100. Im attempting to load a ICM color profile file that is stored with the main ImageMagick config files (colors.xml, etc.) using RMagick. $config -> imageSizerOptions, // all items from wire/configĪrray ( // overwrite specific items 'defaultGamma' => - 1, 'sharpening' => 'medium' ) ) īut in s case, I can't think of that this is the issue / solution. $config -> imageSizerOptions = array_merge ( PLEASE, repeat all other items with there respective values, or use array_merge() !! After your correction, the defaultGamma is the only one item. This is really a bad idea! with this, you wibes out all other properties of the imgaeSizerOptions:īefore your correction, the imageSizerOptions array contain items for sharpening, quality gamma etc. $config -> imageSizerOptions = array ( 'defaultGamma' => - 1, // defaultGamma: 0.5 to 4.0 or -1 to disable gamma correction (default=2.0) ) I had a similar problem in the past and I fixed it by disabling the gamma correction.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |