Forums

Image resize plugin problem

ugly 22 Dec, 2009
I would like to use the image resize plugin. My chrono form is sucessfully uploading images to my news folder the upload config for that looks like:
[attachment=0]formuploadingsettings.jpg[/attachment]
I have configured the resizer plugin as shown below, but nothing is happening. many thanks for advice offered.
[attachment=2]resizer1.jpg[/attachment]
[attachment=1]imagelarge.jpg[/attachment]
GreyHead 22 Dec, 2009
Hi ugly,

The perennial plugin question - is it enabled on the Form Editor plugin tab?

Bob
ugly 23 Dec, 2009
Hi Bob,
The form editor plugin tab , is showing 'Image size and thumbnail' with a green tick against it. So it looks enabled.
[attachment=0]enabled.jpg[/attachment]
GreyHead 23 Dec, 2009
Hi Ugly,


No - that's just a really bad piece of interface design.

Red bar = disabled
Green bar = enabled;

Tick = click to enable
Cross = click to disable.

Bob
ugly 23 Dec, 2009
Thanks Bob, sorted! Can I run one last query by you? I would like the generated image file name not to carry any sort of prefix or suffix, such as _big, _small, _medium, that seem to get automatically generated. I would like the new generated file to overwrite the original image file and just assume its name. Can this be done?
GreyHead 23 Dec, 2009
Hi Ugly,

Yes I think that you can leave the prefix & suffix fields empty and the name will remain unchanged (you need some kind of distinguisher if you have more than one size).

Bob
ugly 23 Dec, 2009
Thank you for your patience and taking me through this Bob. I'm having a problem with the sufix field, I just can't remove it, after each save the '_med' suffix keeps appearing, the problem does not exist with the prefix field. I then end up with a file like "myimage.jpg_med" .In other words the suffix is added to the file extension!
GreyHead 23 Dec, 2009
Hi ugly,

I have an updated test version of the plugin that I know is working on another site. I'll get a copy for you first thing in the morning.

Bob
GreyHead 24 Dec, 2009
Hi ugly,

Here are my updated versions of the plugin and the plugin helper. Please un-zip and copy the plugin to components/com_chronocontact/plugins/cf_image_resize.php and the helper to administrator/components/com_chronocontact/plugins/plugin.php

I suggest that you rename the existing files first so that you can revert if necessary. The helper file *should* be backward compatible with other plugins but there's always a possibility that something won't work as it should.

Bob
ugly 24 Dec, 2009
Thank you so much Bob, it works fine!!!
jack19 30 Nov, 2013
Hi Bob,
I have the same problem with ChronoForms 4.0.1 (7.October.2013)
There is a solution?
Best Regards
Gioacchino

Ops.
ok, it works online.
Regards.
This topic is locked and no more replies can be posted.