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
Fallback alternative for the ImageResizer #2
Comments
was resolved in randuin's branch |
For future reference, I plan on switching to ImageMagick in the future since uploads are now queued and I want to use Lanczos resampling for everything. But I want to hold off on any additional major changes until the basics are implemented. |
ghost
mentioned this issue
Mar 23, 2013
evazion
added a commit
that referenced
this issue
Sep 6, 2019
All pools containing post #1: https://danbooru.donmai.us/pools?search[post_ids_include]=1 All pools containing either post #1 or #2: https://danbooru.donmai.us/pools?search[post_ids_include]=1,2 https://danbooru.donmai.us/pools?search[post_ids_include]=1+2 Pools with 1-100 posts: https://danbooru.donmai.us/pools?search[post_id_count]=1..100 Pools with no posts (empty pools): https://danbooru.donmai.us/pools?search[post_id_count]=0
evazion
added a commit
that referenced
this issue
Mar 21, 2024
Add the following syntax for embedding images in DText: !post #12345 !asset #12345 This will embed a 720x720 size image. You can add a caption beneath the image like this: !post #12345: This is the image caption. You can embed a gallery of thumbnails like this: * !post #1 * !post #2 * !post #3 This will embed a grid of 180x180 size thumbnails. Known issues: * Currently you can only embed images in wiki pages. There need to be limits before they can be enabled in other places so that people don't flood threads with too many images. * You can't embed images that are only visible to Gold or above users. You can only embed images that are visible to everyone. This is because making DText rendering dependent on the current user would preclude caching. It's also to discourage people from embedding images that not everyone can see. * There's no way to blacklist embedded images. (It wouldn't work anyway for media assets, unless we used AI tags). * There's no syntax for selecting the size of the image. Standalone images are always 720x720 and thumbnail galleries are always 180x180. * We always use 720x720 .webp samples for embedded images, which may not be viewable for people with ancient browsers that don't support .webp. * You can't put images inside tables (which would be necessary for Wikipedia-style infoboxes in wikis). * You can't `float: right` images (which would also be necessary for infoboxes in wikis). * Animated GIFs and PNGs load the static thumbnail instead of the animated image. We ought to generate sample videos for animated GIFs. * Videos load the original video file, which may take a lot of bandwidth, especially if there are multiple videos on the page. We ought to generate 720p or 480p samples for each video. * Video always autoplay, which may be undesirable. * Videos don't show the audio icon when the video has audio (videos with sound are muted, however). * You can't embed Flash posts. * It's technically possible to embed arbitrary images using media assets, but it's a cumbersome process.
evazion
added a commit
that referenced
this issue
Mar 21, 2024
Add the following syntax for embedding images in DText: !post #12345 !asset #12345 This will embed a 720x720 size image. You can add a caption beneath the image like this: !post #12345: This is the image caption. You can embed a gallery of thumbnails like this: * !post #1 * !post #2 * !post #3 This will embed a grid of 180x180 size thumbnails. Known issues: * Currently you can only embed images in wiki pages. There need to be limits before they can be enabled in other places so that people don't flood threads with too many images. * You can't embed images that are only visible to Gold or above users. You can only embed images that are visible to everyone. This is because making DText rendering dependent on the current user would preclude caching. It's also to discourage people from embedding images that not everyone can see. * There's no way to blacklist embedded images. (It wouldn't work anyway for media assets, unless we used AI tags). * There's no syntax for selecting the size of the image. Standalone images are always 720x720 and thumbnail galleries are always 180x180. * We always use 720x720 .webp samples for embedded images, which may not be viewable for people with ancient browsers that don't support .webp. * You can't put images inside tables (which would be necessary for Wikipedia-style infoboxes in wikis). * You can't `float: right` images (which would also be necessary for infoboxes in wikis). * Animated GIFs and PNGs load the static thumbnail instead of the animated image. We ought to generate sample videos for animated GIFs. * Videos load the original video file, which may take a lot of bandwidth, especially if there are multiple videos on the page. We ought to generate 720p or 480p samples for each video. * Video always autoplay, which may be undesirable. * Videos don't show the audio icon when the video has audio (videos with sound are muted, however). * You can't embed Flash posts. * It's technically possible to embed arbitrary images using media assets, but it's a cumbersome process.
evazion
added a commit
that referenced
this issue
Apr 3, 2024
evazion
added a commit
that referenced
this issue
Apr 3, 2024
Add the following syntax for embedding images: !asset #1 !post #1 Produces: <media-embed data-type="asset" data-id="1"></media-embed> <media-embed data-type="post" data-id="1"></media-embed> To add a caption beneath the image: !post #1: This is a caption beneath the image. Produces: <media-embed data-type="post" data-id="1">This is a caption beneath the image.</media-embed> To create a gallery of images: * !post #1: Caption one. * !post #2: Caption two. * !post #3: Caption three. Produces: <media-gallery> <media-embed data-type="post" data-id="1">Caption one.</media-embed> <media-embed data-type="post" data-id="2">Caption two.</media-embed> <media-embed data-type="post" data-id="3">Caption three.</media-embed> </media-gallery> The `!post #1` syntax has to go on a line by itself. It can't go in the middle of a paragraph, inside a header, inside a table, etc. On the Danbooru end, these tags will be written into the actual images.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are a ton of OSX Ruby users and the ImageResizer is a pain and a half to try and get working on a standard Mac environment. There should be a fallback on this module since the image resize time generally isn't a huge concern.
The text was updated successfully, but these errors were encountered: