chlor (
chlorophylls) wrote in
septentrione2018-10-06 04:04 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Entry tags:
Icon table generator feedback post

Public comments/suggestions/bug reports/etc. feedback post for my Icon Table Generator, hosted on GitHub.
About the Icon Table Generator
Webapp that instantly generates HTML that you can copy and paste to display your avatars/graphics in a nice, neat, numbered table on Dreamwidth (or anywhere that accepts HTML).
Uses HTML, CSS (Bootstrap), and Javascript (jQuery).
Features
- Adding image links one at a time
- Adding multiple image links at a time, separated by new lines, but also allows for custom separators
- Adding all images from an Imgur album thanks to integrating the Imgur API
- Table style customization
- Icon cell (spacing, background color) customization
- Numbering (big or small or regular font size, color) customization
- Ability to preview table
- Can automatically extract direct image URLs from HTML code pasted in the "Add multiple links" text area. Primarily developed the feature for imgbb but should work on any image host that allows users to copypaste mass embed codes that contain direct image URLs.
Notes
- The table is centered by default. Use the table alignment buttons to align accordingly.
- This webapp only makes GET requests, not POST requests.
- The Imgur API rate limit is described here as follows:
The Imgur API uses a credit allocation system to ensure fair distribution of capacity. Each application can allow approximately 1,250 uploads per day or approximately 12,500 requests per day. If the daily limit is hit five times in a month, then the app will be blocked for the rest of the month. (...) We also limit each user (via their IP Address) for each application, this is to ensure that no single user is able to spam an application.
- What this means is that, for each day, this application allows for up to 500 different users to to process 25 Imgur albums each. Or, 1 obsessive user to process 12,500 Imgur albums. Or 125 users to process 100 albums. Do the math, etc.
- Either way, based on current usage statistics, the application will probably never hit this daily 12,500 request limit, so don't worry about it too much.
- 12/13/19 - Implemented table alignment options.
- 1/26/21 - Updated multi-link adding to split input by new lines, instead of semicolons. Users can choose their custom separator with new input field (activated by check box).
- 2/19/22 - Some refactoring on the back end, and some cosmetic changes for wording. Apparently people on IJ and LJ are also using this generator too. Thanks for all the support, everyone 🙂
- 2/24/23 - More refactoring and frontend updates. The "add multiple links" area should now be able to clean up and extract direct image URLs from HTML code pasted in, with instructions on how to do so when the "Help" button is clicked. Also added some cosmetic changes like a shiny new favicon. Changed Imgur API application client ID and privated the repo for the sake of, well, privacy.
no subject
no subject
I just have one suggestion: I was wondering if you could add an option to left align the table.
no subject
no subject
no subject
no subject
no subject
no subject
no subject
However, I think I can come up with a workaround if you're willing to go to "Embed codes" and go to the "HTML Full Linked" option in the dropdown for an album. I might be able to whip something up to automatically strip the irrelevant code tags and get the direct image link, which can then be put in. Would that work?
no subject
no subject
Let me know if this breaks anything or something isn't working as expected/intended.
no subject
no subject
no subject
It's a little more code, but should be easy to update the generator, and it's much more mobile-friendly. :)
This does expect all icons to have an intrinsic height and width of 100px; to enforce even blocks where icons might be different sizes, you'd want the following to replace each icon (basically: height:100px; width:100px; on the DIV parent of the IMG, and margin:auto; on the icon itself):
(Setting images to display:block removes the tiny gap below images that otherwise shows up in both tables and divs; they're natively an inline element.)
These settings are the equivalent of:
- 5 images per row, 2px padding on icons, 4px between cells
-- max-width:calc((100px + (2px * 2)) * 5 + (4px * 4)): 5 columns of 100px with 2px padding on either side, plus 5-minus-1 * 4px for the gutter between cells.
- Icon border color: #eee, table background color: left blank, number color: #000, number background color: #ddd, text before number: pic
no subject
no subject
no subject
and this is the album: https://imgur.com/a/85kTCAf
i was wondering if it was taking a bit due to the number of icons in the album, but even leaving it for a bit it’s not doing anything
no subject
no subject
no subject
When I link this album https://imgur.com/a/cookie-run-kingdom-Y04E4vN in the album adder, nothing happens and just keeps showing zero. If I add the images individually, it works just fine, though.
no subject
no subject
no subject