Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js Rewrite #28

Closed
21 tasks done
corbindavenport opened this issue Oct 5, 2024 · 6 comments
Closed
21 tasks done

Node.js Rewrite #28

corbindavenport opened this issue Oct 5, 2024 · 6 comments
Assignees

Comments

@corbindavenport
Copy link
Owner

corbindavenport commented Oct 5, 2024

ImageShare is currently in the process of being rewritten as a Node.js server, replacing the original PHP codebase. The current version relies on external third-party services for image uploads and QR code generation, and the code is getting pretty messy. The work is currently being done in the node-rewrite branch.

Project Goals

  • Image uploads are handled entirely by the ImageShare server, without Imgur or ImgBB
  • QR code images are generated by ImageShare server, not the goQR.me API
  • Cleaner code with simplified Docker container structure
  • Improved documentation and installation for self-hosting
  • Seamless upgrade from previous PHP version
  • Still compatible with Nintendo 3DS, Wii U, and other legacy web browsers

Project Status

Most features in the current version will be ported to the new Node version, if not all features. The live site will be switched to the new codebase when the core functionality is available.

Current features that need to be implemented:

  • Basic web interface with two-column layout and 3DS-specific viewport fixes
  • Favicon and home screen app icons
  • Optional HTTPS support
  • Docker container
  • Optional Plausible analytics support
  • QR code for viewing uploaded image on another device
  • Clickable link for viewing uploaded image
  • Game title detection for 3DS games
  • Web app manifest for standalone mode on supported browsers
  • Compatibility with existing Docker configuration settings (as explained in DEV.md)
  • Error handling with rendered web pages

New changes and features:

  • Uploading images with temporary server hosting
  • Configurable upload size limit (previously Improve larger image file support #21)
  • Image is downloaded immediately after scanning with Content-Disposition HTTP header
  • Wii U game detection
  • Game title is added to downloaded image
  • Update setup documentation
  • Support for all image and video formats
  • Create temporary short link for typing on another device
  • Dark mode support
  • Improved design with better legacy browser support
@corbindavenport corbindavenport self-assigned this Oct 5, 2024
This was referenced Oct 5, 2024
@corbindavenport
Copy link
Owner Author

The main instance at theimageshare.com has switched to the node-rewrite branch.

@wanniethecharacter
Copy link

Bring back ImgBB!

@wanniethecharacter
Copy link

Bring back ImgBB!

and by that, I mean the option to switch from its own server to ImgBB so my photos won’t get deleted after 2 minutes!

@corbindavenport
Copy link
Owner Author

@wanniethecharacter I'm still figuring out if ImgBB and/or Imgur support will be added back as options. They've been pretty unreliable over the past few years, which is why the current focus is transferring images to a modern device with the QR code or link (the link needs to be improved for sure). Once the images are on another device they can be backed up or uploaded anywhere.

The ImgBB website now lists API access as a paid feature, so I'm not sure how much longer it will be available for free, and it was rate-limiting API requests from the main site (not sure if that applied to custom keys or just the default public key). Imgur blocked the main site entirely so the API was only usable by people self-hosting.

@corbindavenport
Copy link
Owner Author

Imgur and ImgBB support won't be implemented in the new version. I made a new issue for that discussion and possible return in the future: #31

@corbindavenport
Copy link
Owner Author

It's done! 🎊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants