ServicePark vehicle maintenance tool

GazHyde

Administrator
Administrator
Global Moderator
M Power
Joined
Dec 2, 2011
Points
226
Location
Berkshire
Model of Z
Z4 MR
Hi @s512, a couple of small things from my initial look just now.

The first time I got an error when uploading a photo because the filesize was too big, but no mention of the actual size limit. Have you thought of looking at something to resize on upload? The forum software has this built in (uses ImageMagick PECL Extension) which means people don't have to edit their images before uploading as long as the raw file is less than 10MB in size. Usually compresses them down to a few hundred KB. Just makes things more user friendly, while keeping your disk space requirements in check.
upload_2016-3-22_20-17-57.png


Also, uploaded pictures need to be square, but it doesn't mention that anywhere. Means people have to edit their pictures before uploading, or this happens.
upload_2016-3-22_20-16-53.png


Gaz
 

s512

Dedicated Member
British Zeds
Joined
Sep 3, 2014
Points
33
Model of Z
Z3 3.0
@GazHyde - all very good points, appreciate your feedback.

The picture upload/profile section is one area that needs a lot of further development. Once the basics are polished, I really want to build that area out to make it a lot more social: with image galleries, privacy settings and a feed.
Also, uploaded pictures need to be square, but it doesn't mention that anywhere. Means people have to edit their pictures before uploading, or this happens.
Yeah, currently, images are resized and cropped to 700x700, which isn't ideal. They are cropped to fit in the placeholders nicely, but ultimately I would like to add in a manual crop as per Facebook etc.

Uploads are limited to 5MB as this resizing consumes a lot of memory. I'll add a note to the page. I found that the resize/crop process was nearing limits with any larger files so I will need to experiment and up them slightly. Also further code optimisations will help. Do you know off-hand what your memory limit is set to? Of course it also depends what the server can handle - I imagine this box has a better spec!

Cheers,
Sam
 
Top