brightmarch / picto Goto Github PK
View Code? Open in Web Editor NEWPicto is a simple image sharing application.
Home Page: https://picto.io
License: MIT License
Picto is a simple image sharing application.
Home Page: https://picto.io
License: MIT License
An image without an extension can not be viewed. The image can still be valid, but if no extension is provided the image will not display.
See image hash AMzYJdZu as an example.
Any Exception that is not manually caught is leaked through each request which is an annoyance and possible security vulnerability.
An event handler needs to be written to catch all of these uncaught exceptions and respond appropriately to them.
Currently a query is executed to attempt to retrieve an image from a hash sent in via the request parameters. This is an unnecessary query most of the time and can easily be avoided.
Avoid the query if there is no hash parameter or the hash parameter is empty.
Images that fill the screen look good with the transparent header, but images that don't look bad.
See https://picto.io/i/BOUZ01Yl as an example. If an image fills the full screen, chances are the top 40px are not extremely important. However, images that do not fill the screen might need those pixels.
Thus, on the image display page add some JavaScript to determine if the image fills the screen or not. If it does not, apply some padding/margin to the top of it so it goes below the transparent bar.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.