Hi V@no
Is it possible instead of renaming the file with a random features to rename the file with a prefix?
There are 4 different prefixes:
32q_ (width-to-height ratio 3:2, landscape format)
32h_ (width-to-height ratio 3:2, panel format)
43q_ (width-to-height ratio 4:3, landscape format)
43h_ (width-to-height ratio 4:3, panel format)
While uploading a picture there should be done the following checks:
1. Has the picture the required width-to-height ratio of 3:2 or 4:3? When not, the picture has to be rejected. A limit of tolerance should be definable.
2. which is the format of the picture? Landscape format (1) or panel format (2). The format should be stored in the database (value 1 or 2)
3. assign the prefix according width-to-height ratio and format
A picture with the original name “house.jpg”, and a width-to-height ratio 3:2, and landscape format should get the filename “32q_house.jpg”. The new name is stored in the database.
In the database, in the table “4images_images”, there is a filed “image_format” (defined by me).
When a picture has a width-to-height ratio of 3:2, the value „11.5 x 16 cm“ should be stored.
When a picture has a width-to-height ratio of 4:3, the value „12 x 16 cm “ should be stored.
Is that a big issue?
Thanks for helping me.
TIMT