
SOLVED: Generate image variation on upload (client-side image resizing)
By
Clément Lambelet, in General Support
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By Marcel
Hey,
I am about to use the tool Create Users Batcher. We have 450 users. When I tryed it with like 20 test users it worked but it took a while. Now my concerns are that 450 might be to stressful? Does anyone have experience with several hundreds of users? My thoughts are to split it in smaller goups and upload them one group after another.
best wishes
marcel
-
By gregory
Hi guys.
I would like to show only the first image as a preview of a slideshow. The code below shows the first image but is repeated. Do you know a solution? Thank you
//Call image foreach($story->galleria as $img) { echo "<img src='{$story->galleria->first()->url}' alt='{$story->galleria->first()->description}'>"; }
-
By dragan
All of a sudden image-upload seems broken. No matter if I want to upload one single image or several images.
Chrome console says:
Uncaught SyntaxError: Unexpected token in JSON at position 414 at JSON.parse (<anonymous>) at Function.parseJSON (JqueryCore.js?v=1535110864:2) at XMLHttpRequest.<anonymous> (InputfieldImage.js?v=122-1535110864:1973) // File uploaded: called for each file xhr.addEventListener("load", function() { xhr.getAllResponseHeaders(); var response = $.parseJSON(xhr.responseText); // line 1973 The spinning animation GIF keeps on spinning forever...
I thought I have seen a forum thread about such an error, but I can't find it anymore.
If I inspect https://dev.mysite.com/backstage/page/edit/?&id=11203&InputfieldFileAjax=1 I only see headers, no content.
content-type: application/octet-stream (in request header)
in response headers:
x-tracy-ajax: 1
x-xss-protection: 1; mode=block
Does anyone know what could cause this?
PW 3.0.111 / PHP 7.2.8
-
By Mustafa-Online
I got a field with a type of "files" named: course_file .. how can I upload it to custom directory??
-
By j00st
Hi everyone!
So I've been going over all the Animated GIF topics before posting this, but unfortunately I'm none the wiser at the moment.
I'm super happy Horst's module has been included into the Core install, but as you might guess...I'm still having issues with my Animated GIFs 😞
CMS & File checklist:
Double-checked if the module is installed = YES
Correct upload of GIF = YES
Testing GIF has 72dpi & is 1000x1000px & 563kb = Shouldn't cause any problem, right?
Uploaded GIF still shows animation in backend = YES
ProcessWire is up to date = 3.0.108
Front-end tests:
Tried the following code, to see if it had to do with the way I'm resizing, but both with no results.
<?php echo $img->width(720)->url?> <?php echo $img->size(720, 0)->url?> Here's the big catch though:
If I just echo the $img->url it will show the GIF...so it has to do with the resizing...but this is where I got stranded...
UPDATE:
Just in case, I also added the PHP & MySQL versions I'm running. Server's online not local.
PHP 5.6.32 (in the overview) ----> But it's in fact, when going to the PHP admin, it's running PHP 7.0. Any chance this is what's causing the issue?
MySQL 5.6.23-78.1
Any tips?
-