Commit Graph

36 Commits

Author SHA1 Message Date
5c4a075231 Constrain aspect ratio conservation to image boundaries as well. 2020-12-30 13:26:31 +01:00
66a411973a Constrain crop proportions by default, with checkbox to disable. 2020-12-30 13:26:31 +01:00
a83b938f8a Reposition crop boundary when window resizes. 2020-12-30 13:26:31 +01:00
5344378333 Crop editor: interpret 'cs' as centre-sliced crop.
At some point, I started using 'cs' instead of 'cc'. Let's just support both.
2020-12-30 13:26:31 +01:00
8147e2b97d Crop editor: do not allow selections starting outside image bounds. 2020-12-30 13:26:31 +01:00
5599ff8d9b Crop editor: use numeric input boxes with appropriate constraints. 2020-12-30 13:05:23 +01:00
93884e2e93 Fix initial slicing dimensions in CropEditor.setDefaultCrop.
Subtle bug. This has been in for years... :)
2020-12-30 13:05:22 +01:00
2a740d8cef Constrain boundary movement to image canvas. 2020-12-30 13:05:22 +01:00
5e0d4df2f7 Allow moving/dragging the crop boundary.
Currently unconstrained.
2020-12-30 13:05:22 +01:00
e84c4f2b43 Constrain crop selection to image dimensions. 2020-12-30 13:05:22 +01:00
893d31af52 Proper dragging of the crop bounding rectangle/area. 2020-12-30 13:05:22 +01:00
5895f4faa6 Rewrite CropEditor.positionBoundary 2020-12-30 13:05:22 +01:00
8e7a09f3f3 Initial version of crop boundary dragging. 2020-12-30 13:05:22 +01:00
837c92db44 CropEditor: split setDefaultCrop from setInputValues and rename. 2020-12-30 13:05:22 +01:00
c392105814 Refactor crop editor DOM functions. 2020-12-30 13:05:22 +01:00
9d95df81fe WIP: finally implement drag events. 2020-12-30 13:05:22 +01:00
d4cc72304e Use flexbox for crop editor box sizing. 2020-12-30 13:05:21 +01:00
2c68b6a798 Improve crop editor styling. 2020-12-30 13:05:21 +01:00
fd84e1c9f8 Refactor crop editor into a proper class. 2020-12-30 13:05:21 +01:00
12ea378b02 Photo uploader: reduce client memory usage.
To create inline thumbnails locally, the previous version of the photo uploader
used base64 representations of the local files to be uploaded. While this is
effective, it is a little wasteful. When uploading several photos at once, this
could even lead to the page becoming less responsive.

This commit changes the process such that the photos are actually resized on a
canvas, only using the local original as a buffer. Hence, only the resized
photo is retained in memory.
2020-02-08 20:35:26 +01:00
8ec6c227d5 Remove leftover debug statements. 2019-03-09 13:58:37 +01:00
cda7f3115c Fix crop editor. 2017-11-09 17:00:36 +01:00
9f92ed6d7a JS photo nav: scroll to #photo_frame automatically. 2017-11-09 17:00:35 +01:00
1f7fe35cec Accept tags consisting of only two letters, too. 2017-11-09 17:00:35 +01:00
0a55730696 Allow all users to create and link people tags. 2017-11-09 17:00:35 +01:00
7f5ce1820d Split preview box creation from preview generation. 2017-11-09 17:00:35 +01:00
ddcc28aff6 Implement upload throttling: one file at a time. 2017-11-09 17:00:35 +01:00
790d5fc5d0 Uploading of new photos now fully working. 2017-11-09 17:00:35 +01:00
77a9cd5d53 Add mockup progress bars to uploads. 2017-11-09 17:00:35 +01:00
c13442cac6 Add label next to spinner to indicate what's happening. 2017-11-09 17:00:35 +01:00
c912c3327e Add spinner; retain preview image order. 2017-11-09 17:00:35 +01:00
6aaa21b176 WIP: new photo uploader. 2017-11-09 17:00:35 +01:00
0341f73d09 Allow changing album pages by arrow keys. 2017-11-09 17:00:34 +01:00
f86a3ce358 Add single photo pages, navigateable by arrow keys and touch gestures. 2017-11-09 17:00:34 +01:00
df7655e00b Allow jumping to random pages through pagination fillers. 2017-11-09 17:00:34 +01:00
ab0e4efbcb Initial commit.
This is to be the new HashRU website based on the Aaronweb.net/Kabuki CMS.
2017-11-09 17:00:22 +01:00