Forums

Image resize option

Naj 19 Mar, 2014
Dear l, s.

I try to make an upload option for all images in a form. This is going well. Now I try the opportunity to reduce the IMAGE RESIZE option. Images automatically
I in the field On-submit put after-Upload Files
However, this is wrong. when in the "Image fieldName" field field name which I also use the "FIELDS CONFIFURATION" field
If I leave it blank, the images are not reduced.

Can you tell me what I'm doing wrong.
I use joomla 2.5.19 in combination with ChronoForms V4 RC3.0

Sincerely,

Naj Kwin
GreyHead 19 Mar, 2014
Hi Naj,

Pleas post here the setting you are using for the two actions.

The Image Resizer just needs the name of the file upload input to find the image.

Bob
Naj 19 Mar, 2014
Hello Grey Head,

I use the following settings:
Upload files for:
enabled yes
Fields Configuration bijlage:jpg jpeg png poison-
Upload Pathé JOOMLA_PATH / images / Sponsors / Sub /
Max Size in KB 1500

Furthermore, the default settings;

Image resize the field:
Delete Original Yes
Image fieldname bijlage
output image (s) quality 85
Big image name prefex Empty
Big image name suffix Empty
Big image Height 175
Big image width 100

Big the image R, G, and B color 255

Big image processing method Resize

Greet
Naj
GreyHead 19 Mar, 2014
Hi Naj,

Please check this line, the syntax is wrong.
Fields Configuration bijlage:jpg jpeg png poison-

Bob
Naj 19 Mar, 2014
Hello Bob,

I've Fields Configuration field adapted to bijlage:jpg-jpeg-png-gif

But it still does not want rafts, further settings are correct?

greeting Naj
GreyHead 19 Mar, 2014
Hi Naj,

The rest look OK to me. Please drag a Debugger action into the On Submit event, then submit the form and post the debug results here.

Bob
Naj 19 Mar, 2014
Hi Bob,

Here the debug report:

Data Array:
Array
(
[option] => com_chronoforms
[chronoform] => Sponserupload
[event] => submit
[Itemid] =>
[bijlage] => 20140319214946_9751f0e485f825409df11ed4de5fde4e_medium.jpg
[Verzenden] => Verzenden
[c2ad0d2413cbd79c1b4e2892d54d96ef] => 1
[_PLUGINS_] => Array
(
[upload_files] => Array
(
[bijlage] => Array
(
[name] => 20140319214946_9751f0e485f825409df11ed4de5fde4e_medium.jpg
[original_name] => 9751f0e485f825409df11ed4de5fde4e_medium.jpg
[path] => C:\domains\kortewink.nl\subdomeinen\meppel-az\wwwroot\images\Sponsers\Sub\20140319214946_9751f0e485f825409df11ed4de5fde4e_medium.jpg
[size] => 44840
[link] => http://www.meppel-az.kortewink.nl/images/Sponsers/Sub/20140319214946_9751f0e485f825409df11ed4de5fde4e_medium.jpg
)

)

)

)

Validation Errors:
Array
(
)


Debug Data 1. Upload routine started for file upload by : bijlage
2. C:\domains\kortewink.nl\subdomeinen\meppel-az\wwwroot\images\Sponsers\Sub\20140319214946_9751f0e485f825409df11ed4de5fde4e_medium.jpg has been uploaded successfully.
3.
Image_Resize 1.
6 1.
thumb_big20140319214946_9751f0e485f825409df11ed4de5fde4e_medium.jpg

2.
thumb_med

3.
thumb_small
Naj 19 Mar, 2014
[quote="Naj"]Hi Bob,

Here the debug report:

Warning: imagegif() [function.imagegif]: Unable to open 'C:\domains\kortewink.nl\subdomeinen\meppel-az\wwwroot\components\com_chronoforms\uploads\Sponserupload\20140319215817_vakantie1.gif' for writing in C:\domains\kortewink.nl\subdomeinen\meppel-az\wwwroot\administrator\components\com_chronoforms\form_actions\image_resize\image_resize.php on line 190
Data Array:
Array
(
[option] => com_chronoforms
[chronoform] => Sponserupload
[event] => submit
[Itemid] =>
[bijlage] => 20140319215817_vakantie1.gif
[Verzenden] => Verzenden
[c2ad0d2413cbd79c1b4e2892d54d96ef] => 1
[_PLUGINS_] => Array
(
[upload_files] => Array
(
[bijlage] => Array
(
[name] => 20140319215817_vakantie1.gif
[original_name] => vakantie1.gif
[path] => C:\domains\kortewink.nl\subdomeinen\meppel-az\wwwroot\images\Sponsers\Sub\20140319215817_vakantie1.gif
[size] => 17364
[link] => http://www.meppel-az.kortewink.nl/images/Sponsers/Sub/20140319215817_vakantie1.gif
)

)

)

)

Validation Errors:
Array
(
)


Debug Data 1. Upload routine started for file upload by : bijlage
2. C:\domains\kortewink.nl\subdomeinen\meppel-az\wwwroot\images\Sponsers\Sub\20140319215817_vakantie1.gif has been uploaded successfully.
3.
Image_Resize 1.
6 1.
thumb_big20140319215817_vakantie1.gif

2.
thumb_med

3.
thumb_small
GreyHead 20 Mar, 2014
Hi Naj,

It looks as though the path to the folder you are uploading to isn't the same as the one you are trying to save the re-sized image to and Joomla! doesn't have write permissions for the second folder.

Bob
Naj 20 Mar, 2014
Hello Bob,

I've tried everything but I'm not making any progress I can send you a backup of my formuliers asking if you want to watch it again after why it does not work.

regards,

Naj
Naj 20 Mar, 2014
Hello Bob,

I've tried everything but I'll not step verder.Ik have a copy of my form to do with whether you want to watch it again after why it does not work.

regards,

Naj
Astrid 23 Mar, 2014
Path to resized images should not include JOOMLA_PATH/. It should just be something like this: images/mypath/
This topic is locked and no more replies can be posted.