-
Posts
4,088 -
Joined
-
Last visited
-
Days Won
88
Everything posted by horst
-
Hhm? Weird. All three modules are set to Version 0.9.17 since weeks/month now. I have updated the directory entry manually now.
-
For simple cropping I use Pia. No need to invoke Pim. Pia has the advantage that she lets you very simple define what you need and she uses all the available ImagerenderingEngines. She isn't bound to GD-lib only, as she only delegates your wishes to the core image engine.
-
Merry christmas to all. If someone is missing some snowflakes, here you can create some: http://codepen.io/ToasterCo/full/gLBLrg/ <3
-
You will need to put every thing of your tree pages under access control, what may not be very hard, as you can select / use the inheritance from parents to children. (Starting at HOME, you have to set it only once for the homepage in the simplest setup) Then you can create a role and user that has edit rights, but is not included in your given access control settings.
-
it uses GD-lib by default, but you also can enable the module for IMagick. We inspect the images at first and when using GD-lib, we use different ways for modifying the images. Per default, we want to use all functions that are needed to produce the best possible quality. But for those known image formats, like png8 with transparency, we ommit some steps. (Those that would include GD-lib methods that are known to produce that black background instead keeping the transparency)
-
Ah, ok, 8bit transparent pngs are not handled correctly by the GD-library! There is no chance. Only solution is to use 24bit PNGs with transparency.
-
More infos please! which transparent regions? what source format? which outputformat? how do you have defined the background?
-
Hooks for manipulating images and its variations
horst replied to AndZyk's topic in Module/Plugin Development
Hi @AndZyk it is not only that the Quality is affected, it results in higher filesizes too, sometimes. Im on mobile now. I May post a link later on, where you can see a comparison. -
Hooks for manipulating images and its variations
horst replied to AndZyk's topic in Module/Plugin Development
Please do you a favour, (and all potentially additonal users of that said module): don't "optimize" the original image! Those image optimization tools are useful to optimize all final variations, what means: optimize images that are only used to be displayed on the web. Don't "optimize" images that you will need as source for variation creation. -
It is not a "PW text editor", it is the "CK-Editor". Please follow the given links in the editorfields configuration screens to all those documentations of the CK-Editor.
-
yep the response tab should be the right if it says no response available, it is liyng to you, as it then cannot parse a json value. ??
-
Hi Joss, what is the return value of that js json parse error? It will be a PHP error. You may have a look into the server reponse of that ajax upload request in the network tab.
-
Here is a good starter profile based upon the twitter bootstrap framework: https://processwire.com/talk/topic/13572-bootstrap-4-minimal-site-profile/
- 5 replies
-
- 1
-
-
- collection
- collector
-
(and 1 more)
Tagged with:
-
Are you sure that you dealing with the right pages / objects in $repeaterItem? Where do you call that, in template scope? How have you set outputformatting, true or false? Have you saved the page after changing the status?
-
unfortunately not. But you may find a good startingpoint here: https://processwire.com/talk/topic/14072-add-image-from-input-typefile-possible-or-must-it-be-wireupload/#comment-126476 look at the $filename = myImageExtract($data, $basename); part, - specially the function myImageExtract with the WireTempDir class.
-
Have updated it now to version 0.9.17. There was another one pending with this part of the code. I thought I had already comitted it. Sorry!
-
Plans yes, - but currently no time. It will need a complete redesign of the storage. Currently it is stored with the original files in IPTC, and thats not supported by PNG and GIF.
-
@FrancisChung, uhhm, I changed wire-> to $wire-> on the fly for the example to be more future ready with PW3 and possible multi instances. So, please, can you test if it works with this too: if($u) { $wire('user')->user = $u; } (see the preceding $, to invoke the instances aware $wire, and not the (static) main wire instance)
-
// example // PW3, bootstrap check user-account $PWuser = empty($_GET['user']) ? '' : $_GET['user']; $PWpass = empty($_GET['pass']) ? '' : $_GET['pass']; if(!$wire->get('user')->isLoggedIn() || !$wire->get('user')->hasRole('superuser|chef')) { $u = $wire->get('session')->login($PWuser, $PWpass); if($u) { $wire->get('user') = $u; } if(!$wire->get('user')->isLoggedIn() && !$wire->get('user')->hasRole('superuser|chef')) { echo "\n\nERROR: Incorrect User-Login!\n\nScript stops now!\n"; exit(1); } echo "\nSuccessful logged in as: " . $wire->get('user')->name ."\n"; } else { echo "\nAllready logged in as: " . $wire->get('user')->name ."\n"; }
-
This is not intended, but its previous state is only saved for jpegs, not for png or gif formats.
-
Can you post an issue on GitHub?
-
I can confirm this! Have seen this yesterday and wanted to investigate a bit further, but haven't had time. Have you tried copying that block into site/config.php, after the part where you set other chmod values?
-
Have you tried to login a specific user from within the script? Maybe a specialy created user 'cli', who has superuser rights granted? I'm not sure, but if you run that script form the browser, and you was logged in before with your admin account, than the script also runs in that account.
-
I have upgraded a site yesterday too. Here everything is working as expected. With both, existing and new created images. (PW 3.0.39 to 3.0.43)
-