Page 1 of 1

image resizing on uploading

Posted: May 20th, '14, 07:47
by crinch
Hi,

I am using

ApPHP AdminPanel Free version 1.0.5
PHP DataGrid 4.2.8
JS AFV 1.0.5
jQuery 1.1.2

I'm facing a problem with image resizing while uploading an image. My field code is
picture_url" => array("header"=>"Image URL", "type"=>"image", "req_type"=>"st", "resize_image"=>"true", "resize_dir"=>"resizes/", "resize_width"=>"50px", "resize_height"=>"", "title"=>"Picture", "readonly"=>false, "maxlength"=>"-1", "default"=>"", "unique"=>false, "unique_condition"=>"", "on_js_event"=>"", "target_path"=>"uploads/", "max_file_size"=>"1000K", "file_name"=>"", "host"=>"local")

There is no error but the same size of image is being uploaded in UPLOADS directory. Need help to resolve this problem. there image is being uploaded in RESIZES directory.

Thanks

Re: image resizing on uploading

Posted: May 21st, '14, 05:11
by administrator
'resize_dir'=>'down|up|both',

means resize direction, not directory.

Re: image resizing on uploading

Posted: May 23rd, '14, 10:04
by crinch
Thanks for your reply,

I have updated my code according to your suggestion but still the full image is being uploaded not resizing. How I can manage it to make it resize.
my code is:
"picture_url" => array("header"=>"Image", "type"=>"image", "req_type"=>"st", "width"=>"220px", "title"=>"", "readonly"=>"false", "maxlength"=>"-1", "default"=>"", "unique"=>"false", "unique_condition"=>"", "visible"=>"true", "on_js_event"=>"", "target_path"=>"uploads/", "max_file_size"=>"3M", "image_width"=>"", "image_height"=>"", "magnify"=>"true", "magnify_type"=>"lightbox", "resize_image"=>"true", "resize_dir"=>"down|up|both", "resize_width"=>"", "resize_height"=>"40px", "file_name"=>"", "host"=>"local", "pre_addition"=>""),


Need help to resize image.
Thanks

Re: image resizing on uploading

Posted: May 25th, '14, 04:39
by administrator
"resize_dir"=>"down", "resize_width"=>"90px", "resize_height"=>"40px"

Does it help now?

Re: image resizing on uploading

Posted: May 26th, '14, 06:41
by crinch
Hi,

I have updated my code according to you

"resize_dir"=>"down", "resize_width"=>"90px", "resize_height"=>"40px"

but it doesn't help. Would you like to suggest how to resize my image while uploading.

Thanks

Re: image resizing on uploading

Posted: May 27th, '14, 05:21
by administrator
What it mean "doesn't help". Please provide us a testing link + your code, so we could check what exactly happens.

Re: image resizing on uploading

Posted: May 29th, '14, 09:59
by crinch
Hi,

I am testing my application on my local system and I could not manage to resize image while uploading. The full size image is being uploaded without resizing. I have mentioned my code below

Code: Select all

 
$em_columns = array(
 
   "picture_url" => array("header"=>"Image", "type"=>"image", "req_type"=>"st", "width"=>"220px", "title"=>"", "readonly"=>"false", "maxlength"=>"-1", "default"=>"", "unique"=>"false", "unique_condition"=>"", "visible"=>"true", "on_js_event"=>"", "target_path"=>"uploads/", "max_file_size"=>"3M", "image_width"=>"", "image_height"=>"", "magnify"=>"true", "magnify_type"=>"lightbox", "resize_image"=>"true", "resize_dir"=>"down", "resize_width"=>"90px", "resize_height"=>"40px", "file_name"=>"", "host"=>"local", "pre_addition"=>""),   
 );


I am using

ApPHP AdminPanel Free version 1.0.5
PHP DataGrid 4.2.8
JS AFV 1.0.5
jQuery 1.1.2

if you mention your email address I can send you my small application with full code and database to resolve my problem. Also is there a possibility that there is no image resizing functionality in free ApPHP version.


I am very thankful to your help.

Re: image resizing on uploading

Posted: May 29th, '14, 10:29
by administrator
Sorry, but this feature in paid version of DataGrid only, you may check it here:
http://www.apphp.com/php-datagrid/index ... ge=pricing