Skip to content

Releases: KartoffelCheetah/personal-website-001

Update: ANSI Select Graphic Rendition on server side

01 Mar 22:38
c070068
Compare
Choose a tag to compare
  • As pythonanywhere supports RGB foreground colors for it's bash, changed the coloring method.
    The back-end became more customizable and cleaner.
  • Updated readme with the new files (and with a previously missing one).

Hotfix: CSS

25 Feb 18:32
Compare
Choose a tag to compare

CSS colon missing caused rule to be invalidated and only fallback -webkit- rule was used.

Small resolution preloader / path system rework

10 Feb 22:43
Compare
Choose a tag to compare

Major update because previous databases will be incompatible.
Some changes on the front-end and a ton on the back-end:

  1. Reworked paths so the system as a whole will be more logical and easily manageable.
    This means URL inside database changed. They do not contain the repeatable information like /img/drawings,/img/photos.
  2. Added function to delete database
    It's in reality just a rename so, it wont delete the actual database.
    (os.rename, it's a good idea to do so before doing the update, if you want to regenerate the whole db).
  3. Database now contains the resolution of the images after the orientation.
  4. Photos/drawings and the background now got low res or blurred versions which can preload before the high-res image.
  5. Some parts of the sqlite3 code were rewritten to use row_factories instead of tuples.
    It made Jinja2 templates much clearer as well.

Unless you want to update every row manually, you have to regenerate the whole db.
Do this in the following way:

  1. generate staging file from old database
  2. delete or rename the old database (you can use the function in main.py)
  3. important to edit the urls in staging_file.json in the following way:
    3.1. replace all /img/photos/ and /img/drawings/ statement with nothing. Ex:/img/photos/a.jpg -> a.jpg
    most text editor has replace all functionality that could be useful for this
  4. create database
  5. use staging file
  6. done!

Note: if you get an error message similar to permission denied to mkdir into root that means you did not changed all urls in staging file.

Hotfix: Interpreter shebang, strip

08 Feb 20:40
Compare
Choose a tag to compare
  1. 0bc7642 Added strip to check_output functions.
  2. b821906 Changed shebang line to specifically target python 3.5, because of pythonanywhere's structure.
    (reason: subprocess.run requires at least python 3.5.)

ImageMagick is here!

08 Feb 18:45
d1951fe
Compare
Choose a tag to compare

Replaced PIL with ImageMagick. Fixed #8.

Hotfix: Misleading title fix

05 Feb 17:02
Compare
Choose a tag to compare
Pre-release

Misleading title "Click to change the view" appeared previously even when it was not possible to do so. Fixed!
Cause:
The previous pre-release disabled full screen preview of images on mobile, however the titles remained.

Disabled maximized view on touch screens.

05 Feb 15:28
Compare
Choose a tag to compare

Disabled maximized view on touch screens.

Orientation with python

03 Feb 22:24
Compare
Choose a tag to compare
Pre-release

THIS IS A PRE-RELEASE!

  1. Image orientation is done with PIL instead of JavaScript-Load-Image when the image is uploaded.
  2. Added functions to main.py:
    64446bb can query db, fill staging file from db
    e317613 can query size of images

#8 Known bug: exif tags go missing.

Staging area

30 Jan 22:46
2f54a27
Compare
Choose a tag to compare

Created staging area instead of database operations.
Added package-lock.json.

Contact Background-Image

28 Oct 21:48
10bb828
Compare
Choose a tag to compare

Made background-image to contacts. Unnecessary media queries removed.