Compress and crop file attachments

According to frappe documentation, linked below, we can crop and optimize images but I’m not seeing any of these options. Following are my versions:

ERPNext: v 13.21.0
Frappe: v 13.21.0

The set of functions you are looking for are Frappe Framework functions and not particularly ERPNext functions.

However, they are available to you for managing files even in ERPNext. To get there you should go to the Awesome Search Bar at the top of the screen of any ERPNext screen and type: File

Then select the “File List” option that appears in the drop down list. This will take you to a screen that is essentially the Frappe functions you are trying to access.

The screen displays the list of folders that currently contain your files. By using the buttons in the top right corner of the screen you can add new folders and other functions to help you manage your files.

Hope this helps…

BKM :sunglasses:

Thanks BKM, I’m using these functionalities but the option to crop any image or optimize (compress) is not available on my site as it is mentioned in documentation link.

Hmm… I never considered that the full function set would not be available, but you are right. The crop icon is not anywhere to be found when using the file functions (even if the picture file is obviously too large for upload)!

I only attach spreadsheets so I did not notice the crop icon missing

My apologies for interrupting your question with incorrect information. :disappointed:

This will probably require a search in the code to find where the crop function is turned off.


Looks like it’s only for v14 beta. Maybe some one from ERPNext can confirm

1 Like

It’s working on v14 beta

How can we optimize tens, possibly hundreds of images at a given time? :slight_smile:

I recently started exploring the whole attachment and image cropping scene, and man, it’s been quite the journey! Checked out the JPEG Optimizer as suggested compress image – seriously, a game-changer! The way it handles compressing images is pure magic. I mean, who knew you could make files smaller without sacrificing quality? Also, big shoutout to the peeps discussing cropping in the thread. The tips and tricks shared here are a lifesaver! Excited to learn more and maybe contribute some nuggets of wisdom in the future.