All questions about EDocman extension

Category image upload process changes the image

  • Kent Chadwick
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 6 months ago #38417 by Kent Chadwick
We recently updated EDocman to version 1.5.2 and are very happy with its improvements. We have run into one issue, though. When we upload a Category image, the upload process increases the size of the image dramatically and the image doesn't display correctly.

Is there a setting we can change so that the Category image upload process doesn't change the image file? Or is this a bug that needs to be fixed?

Thank you,

Kent

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #38435 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Category image upload process changes the image
Hi Kent

By default, the image will be resizing. If you don't want it to be resized, submit a support ticket sending us admin and FTP account of the site and we will do it for you !

Regards,

Tuan
The following user(s) said Thank You: Kent Chadwick

Please Log in or Create an account to join the conversation.

  • Kent Chadwick
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 4 months ago #55902 by Kent Chadwick
Replied by Kent Chadwick on topic Re: Category image upload process changes the image
Tuan,

We've looked at this issue some more and see that the category image upload is copying the files to the /var/www/html/media/com_edocman/category directory. If I move the image to the var/www/html/media/com_edocman/category/thumbs directory, then the image is the correct size. Perhaps we can customize the php file to copy them directly to the var/www/html/media/com_edocman/category/thumbs directory. In what Edocman php file will we find that code?

Thank you,

Kent

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #55913 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Category image upload process changes the image
Hi

The code for process resizing image is located at administrator\components\com_edocman\model\category.php. So that is the file you need to modify it if you just want to copy instead of resizing.

You can try to get this file, unzip it, upload to administrator\components\com_edocman\model\ folder and check it again to see whether it works

Regards,

Tuan
Attachments:
The following user(s) said Thank You: Kent Chadwick

Please Log in or Create an account to join the conversation.

  • Kent Chadwick
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 4 months ago #55979 by Kent Chadwick
Replied by Kent Chadwick on topic Re: Category image upload process changes the image
Tuan,

Thank you very much. We edit the category.php
to change $categoryImagePath = JPATH_ROOT.'/media/com_edocman/category/';
to $categoryImagePath = JPATH_ROOT.'/media/com_edocman/category/thumbs/';
and now the icons are uploading without a size problem.

Kent

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #55999 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Category image upload process changes the image
Hi Kent

Yes. That solution works, too :)

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam