image resizing on uploading

Talk about Image/File fields (uploading, problems etc.)

Moderator: alexandrleonenko

crinch
Newbie
Newbie
Posts: 4
Joined: May 20th, '14, 07:36

image resizing on uploading

Postby crinch » May 20th, '14, 07:47

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

administrator
Site Admin
Site Admin
Posts: 5997
Joined: Jan 7th, '09, 23:18
Contact:

Re: image resizing on uploading

Postby administrator » May 21st, '14, 05:11

'resize_dir'=>'down|up|both',

means resize direction, not directory.

crinch
Newbie
Newbie
Posts: 4
Joined: May 20th, '14, 07:36

Re: image resizing on uploading

Postby crinch » May 23rd, '14, 10:04

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

administrator
Site Admin
Site Admin
Posts: 5997
Joined: Jan 7th, '09, 23:18
Contact:

Re: image resizing on uploading

Postby administrator » May 25th, '14, 04:39

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

Does it help now?

crinch
Newbie
Newbie
Posts: 4
Joined: May 20th, '14, 07:36

Re: image resizing on uploading

Postby crinch » May 26th, '14, 06:41

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

administrator
Site Admin
Site Admin
Posts: 5997
Joined: Jan 7th, '09, 23:18
Contact:

Re: image resizing on uploading

Postby administrator » May 27th, '14, 05:21

What it mean "doesn't help". Please provide us a testing link + your code, so we could check what exactly happens.

crinch
Newbie
Newbie
Posts: 4
Joined: May 20th, '14, 07:36

Re: image resizing on uploading

Postby crinch » May 29th, '14, 09:59

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.

administrator
Site Admin
Site Admin
Posts: 5997
Joined: Jan 7th, '09, 23:18
Contact:

Re: image resizing on uploading

Postby administrator » May 29th, '14, 10:29

Sorry, but this feature in paid version of DataGrid only, you may check it here:
http://www.apphp.com/php-datagrid/index ... ge=pricing


Return to “Field type: "image/file"”