LoyceV
Legendary
Offline
Activity: 3472
Merit: 17516
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
October 16, 2023, 09:02:40 AM Merited by vapourminer (1) |
|
Until can fix the problem, uploading images up to 3MB is authorized. But remember that the forum only accepts images up to 2.5MB. This got me thinking: how about accepting all images (or maybe with a 20 MB limit to avoid crazy large files), and processing them after uploading? My first Google hit shows how to do it with mogrify. Assuming you have shell access on the server, you can check the file size after uploading, and reduce it when needed.
|
|
|
|
joker_josue (OP)
Legendary
Offline
Activity: 1820
Merit: 4908
**In BTC since 2013**
|
|
October 16, 2023, 12:39:20 PM |
|
Until can fix the problem, uploading images up to 3MB is authorized. But remember that the forum only accepts images up to 2.5MB. This got me thinking: how about accepting all images (or maybe with a 20 MB limit to avoid crazy large files), and processing them after uploading? My first Google hit shows how to do it with mogrify. Assuming you have shell access on the server, you can check the file size after uploading, and reduce it when needed. This could be an interesting solution, but it would have to have the Cron Job process running every second, to ensure that the images were immediately readjusted. Well, it's a solution I might look into.
|
|
|
|
dkbit98
Legendary
Offline
Activity: 2394
Merit: 7508
|
|
October 17, 2023, 10:05:58 PM |
|
I checked, and there is indeed a failure in recognizing images larger than 2MB, causing the upload to fail. I am analyzing what is causing this problem, as everything is configured to be able to upload up to 2.5MB.
Could this be something related with your other tool zip.talkimg.com that is used for reducing image size? Maybe something is mixed up with main talkimg website settings. I am usually not uploading larger size images, and it's best to resize them manually to avoid any errors.
|
|
|
|
joker_josue (OP)
Legendary
Offline
Activity: 1820
Merit: 4908
**In BTC since 2013**
|
|
October 18, 2023, 07:10:55 AM |
|
Could this be something related with your other tool zip.talkimg.com that is used for reducing image size? Maybe something is mixed up with main talkimg website settings.
No, it will be... Because the zip tool is running as part of the main software. It sends images via API, and in the tests I did, it sent images larger than 2MB without any problems. Therefore, I find it strange that this problem appeared suddenly. I am studying the subject.
|
|
|
|
dkbit98
Legendary
Offline
Activity: 2394
Merit: 7508
|
|
October 18, 2023, 09:49:21 PM |
|
Therefore, I find it strange that this problem appeared suddenly. I am studying the subject.
I hope you are doing regular backups of your website data and settings, so that you can quickly restore it if something is messed up along the way.
|
|
|
|
shahzadafzal
Copper Member
Legendary
Offline
Activity: 1694
Merit: 3023
|
|
October 20, 2023, 08:55:47 PM |
|
This could be an interesting solution, but it would have to have the Cron Job process running every second, to ensure that the images were immediately readjusted. Well, it's a solution I might look into.
You don't need to run Cron Job if you don't want to. You can do it on-the-fly, resizes or compresses the images as they are requested. I have used similar approach in one of my work projects. We resize the images on-the-fly as they requested, in my case we were keeping original full size image, but you can do it both return the resized image to the user and in the backend also replace the image with new resized one.
|
|
|
|
joker_josue (OP)
Legendary
Offline
Activity: 1820
Merit: 4908
**In BTC since 2013**
|
|
October 21, 2023, 07:30:02 AM |
|
I have used similar approach in one of my work projects. We resize the images on-the-fly as they requested, in my case we were keeping original full size image, but you can do it both return the resized image to the user and in the backend also replace the image with new resized one.
This experience of yours gave me another idea! Thanks. I believe that I will have news on this in the next few days.
|
|
|
|
taufik123
Legendary
Offline
Activity: 2688
Merit: 1823
Rollbit.com | #1 Solana Casino
|
Having been an early TalkImg user until now, I have seen many changes and improvements. One of them is BBCode Link which includes Full, Medium, and Thumbnail sizes. I tried all of them, but I found an oddity in the Medium BBCode link option. In all options, there is no image file size written. But in the Medium BBCode option, there is an additional 38kb which means it is the size of the image in medium size. It seems to be quite annoying when copying it to the post board and having to delete it manually.
|
| █▄ | R |
▀▀▀▀▀▀▀██████▄▄ ████████████████ ▀▀▀▀█████▀▀▀█████ ████████▌███▐████ ▄▄▄▄█████▄▄▄█████ ████████████████ ▄▄▄▄▄▄▄██████▀▀ | LLBIT | ▀█ | THE #1 SOLANA CASINO | ████████████▄ ▀▀██████▀▀███ ██▄▄▀▀▄▄█████ █████████████ █████████████ ███▀█████████ ▀▄▄██████████ █████████████ █████████████ █████████████ █████████████ █████████████ ████████████▀ | ████████████▄ ▀▀▀▀▀▀▀██████ █████████████ ▄████████████ ██▄██████████ ████▄████████ █████████████ █░▀▀█████████ ▀▀███████████ █████▄███████ ████▀▄▀██████ ▄▄▄▄▄▄▄██████ ████████████▀ | ........5,000+........ GAMES ......INSTANT...... WITHDRAWALS | ..........HUGE.......... REWARDS ............VIP............ PROGRAM | . PLAY NOW |
|
|
|
joker_josue (OP)
Legendary
Offline
Activity: 1820
Merit: 4908
**In BTC since 2013**
|
|
November 01, 2023, 03:36:38 PM |
|
In all options, there is no image file size written. But in the Medium BBCode option, there is an additional 38kb which means it is the size of the image in medium size.
It seems to be quite annoying when copying it to the post board and having to delete it manually.
Thanks for the alert. I had to do some tests, and I ended up leaving this information behind. Situation corrected, it should not appear again.
|
|
|
|
taufik123
Legendary
Offline
Activity: 2688
Merit: 1823
Rollbit.com | #1 Solana Casino
|
|
November 01, 2023, 10:10:28 PM |
|
Thanks for the alert. I had to do some tests, and I ended up leaving this information behind. Situation corrected, it should not appear again.
Amazing, in just a few minutes you fixed it. It's a quick response and you've mastered the technicalities of TalkImg well. I have tried again and the information about File size on the Medium BBCode link is gone. I will continue to use TalkImg and will report back if there are any errors during use. Thank you for giving such a great response.
|
| █▄ | R |
▀▀▀▀▀▀▀██████▄▄ ████████████████ ▀▀▀▀█████▀▀▀█████ ████████▌███▐████ ▄▄▄▄█████▄▄▄█████ ████████████████ ▄▄▄▄▄▄▄██████▀▀ | LLBIT | ▀█ | THE #1 SOLANA CASINO | ████████████▄ ▀▀██████▀▀███ ██▄▄▀▀▄▄█████ █████████████ █████████████ ███▀█████████ ▀▄▄██████████ █████████████ █████████████ █████████████ █████████████ █████████████ ████████████▀ | ████████████▄ ▀▀▀▀▀▀▀██████ █████████████ ▄████████████ ██▄██████████ ████▄████████ █████████████ █░▀▀█████████ ▀▀███████████ █████▄███████ ████▀▄▀██████ ▄▄▄▄▄▄▄██████ ████████████▀ | ........5,000+........ GAMES ......INSTANT...... WITHDRAWALS | ..........HUGE.......... REWARDS ............VIP............ PROGRAM | . PLAY NOW |
|
|
|
philipma1957
Legendary
Online
Activity: 4284
Merit: 8706
'The right to privacy matters'
|
|
November 02, 2023, 06:11:07 PM |
|
just sent a monthly donation to
bc1qhwnncpdd8gfzqwjkk9n052wf7g9mvks3xaa7qa
0.001. it is nice to see you getting some support
|
|
|
|
joker_josue (OP)
Legendary
Offline
Activity: 1820
Merit: 4908
**In BTC since 2013**
|
|
November 02, 2023, 07:46:09 PM |
|
just sent a monthly donation to
Thank you again for your support. And to everyone who has helped directly or indirectly to the success of this project. You already know ideas and suggestions, they are welcome.
|
|
|
|
|
LoyceV
Legendary
Offline
Activity: 3472
Merit: 17516
Thick-Skinned Gang Leader and Golden Feather 2021
|
.webp The error message could be improved, but webp isn't supported by the forum.
|
|
|
|
albert0bsd
|
|
November 07, 2023, 01:54:31 PM |
|
The error message could be improved, but webp isn't supported by the forum.
The HTML5 Canvas have the feature of Accept almost any media format and also save the current image in standard formats like jpg and png. The page should detect if the input file is WEBP and process it to PNG or something like that, that should be transparent for the end user. OP if you need a hand with that let me know.
|
I am available for hiring. Avatar and Signature available for rent. Donations: bc1qjyhcjacmpc9pg8wes82lktyrjcwk4sdvqtm7ky
|
|
|
joker_josue (OP)
Legendary
Offline
Activity: 1820
Merit: 4908
**In BTC since 2013**
|
.webp The error message could be improved, but webp isn't supported by the forum. @bitmover as LoyceV commented, the file format is not supported by the forum. In this sense, you cannot upload. In fact, he should have given this error first: If it doesn't appear, when you click on "error report", more details appear. Friends, I continue to explore the possibility of implementing automatic conversion in the upload process. Until then, thank you for your understanding.
|
|
|
|
taufik123
Legendary
Offline
Activity: 2688
Merit: 1823
Rollbit.com | #1 Solana Casino
|
|
November 07, 2023, 02:11:28 PM |
|
.webp The error message could be improved, but webp isn't supported by the forum. the error message that occurs may be due to not refreshing the page. This is something I've experienced before, just refresh the page and everything will be resolved. and for TalkImg supported image formats are JPG, JPEG, PNG, and GIF. image formats such as .webp .tiff, .BMP, etc. are not supported and if you force to upload a warning will appear like this.
-snip- Friends, I continue to explore the possibility of implementing automatic conversion in the upload process. Until then, thank you for your understanding.
It seems to be a feature to look forward to, never having found an image hosting with such a comprehensive tool. To convert I still use the Format Factory application
|
| █▄ | R |
▀▀▀▀▀▀▀██████▄▄ ████████████████ ▀▀▀▀█████▀▀▀█████ ████████▌███▐████ ▄▄▄▄█████▄▄▄█████ ████████████████ ▄▄▄▄▄▄▄██████▀▀ | LLBIT | ▀█ | THE #1 SOLANA CASINO | ████████████▄ ▀▀██████▀▀███ ██▄▄▀▀▄▄█████ █████████████ █████████████ ███▀█████████ ▀▄▄██████████ █████████████ █████████████ █████████████ █████████████ █████████████ ████████████▀ | ████████████▄ ▀▀▀▀▀▀▀██████ █████████████ ▄████████████ ██▄██████████ ████▄████████ █████████████ █░▀▀█████████ ▀▀███████████ █████▄███████ ████▀▄▀██████ ▄▄▄▄▄▄▄██████ ████████████▀ | ........5,000+........ GAMES ......INSTANT...... WITHDRAWALS | ..........HUGE.......... REWARDS ............VIP............ PROGRAM | . PLAY NOW |
|
|
|
bitmover
Legendary
Offline
Activity: 2464
Merit: 6253
bitcoindata.science
|
|
November 07, 2023, 02:15:17 PM |
|
Friends, I continue to explore the possibility of implementing automatic conversion in the upload process. Until then, thank you for your understanding.
Thanks for fast answer. I think the automatic conversion webp>png is somewhat easy to implement in php I just googled it: <?php // Load the WebP file $im = imagecreatefromwebp('./example.webp');
// Convert it to a jpeg file with 100% quality imagejpeg($im, './example.jpeg', 100); imagedestroy($im); ?>
https://stackoverflow.com/questions/31132343/how-to-convert-webp-image-format-to-normal-phpI can help you if you need. The API price image that I maintain is 100% php as well. A build in applike taufik123 suggested will also work fine.
|
|
|
|
taufik123
Legendary
Offline
Activity: 2688
Merit: 1823
Rollbit.com | #1 Solana Casino
|
|
November 07, 2023, 02:48:21 PM Merited by vapourminer (1) |
|
It's pretty simple, but probably only supports converting .webp>.png formats. I tried to utilize AI to create a Converter Tool that can be applied to the TalkImg Photo Hosting website, and this is the result. HTML:<!DOCTYPE html> <html> <head> <title>Image Converter</title> <style> .container { max-width: 500px; margin: 0 auto; padding: 20px; } .form-group { margin-bottom: 10px; } </style> </head> <body> <div class="container"> <h2>Image Converter</h2> <form id="imageConverterForm"> <div class="form-group"> <label for="imageFile">Pilih file gambar:</label> <input type="file" id="imageFile" accept="image/*" required> </div> <div class="form-group"> <label for="outputFormat">Pilih format keluaran:</label> <select id="outputFormat"> <option value="jpeg">JPEG</option> <option value="png">PNG</option> <option value="gif">GIF</option> </select> </div> <button type="submit">Konversi</button> </form> <div id="result"></div> </div>
<script src="image-converter.js"></script> </body> </html> JavaScript (image-converter.js):document.getElementById('imageConverterForm').addEventListener('submit', function(event) { event.preventDefault(); var imageFile = document.getElementById('imageFile').files[0]; var outputFormat = document.getElementById('outputFormat').value; var reader = new FileReader(); reader.onload = function(event) { var image = new Image(); image.onload = function() { var canvas = document.createElement('canvas'); canvas.width = image.width; canvas.height = image.height; var context = canvas.getContext('2d'); context.drawImage(image, 0, 0); var convertedImageURL = canvas.toDataURL('image/' + outputFormat); var resultDiv = document.getElementById('result'); resultDiv.innerHTML = '<h3>Gambar yang dikonversi:</h3><img src="' + convertedImageURL + '">'; }; image.src = event.target.result; }; reader.readAsDataURL(imageFile); }); CSS (style.css):.container { max-width: 500px; margin: 0 auto; padding: 20px; } .form-group { margin-bottom: 10px; }
Written with Javascript programming language using HTML and CSS interfaces, just needs to be adjusted according to your needs. In the example that has been created above, users can choose the output format JPEG, PNG, or GIF, and need to create three separate files with the above code: index.html, image-converter.js, and style.css. and Make sure to save all three files in the same location, and open index.html in a web browser to view and use the Image Converter. This is just an example for your reference material @joker_josue
|
| █▄ | R |
▀▀▀▀▀▀▀██████▄▄ ████████████████ ▀▀▀▀█████▀▀▀█████ ████████▌███▐████ ▄▄▄▄█████▄▄▄█████ ████████████████ ▄▄▄▄▄▄▄██████▀▀ | LLBIT | ▀█ | THE #1 SOLANA CASINO | ████████████▄ ▀▀██████▀▀███ ██▄▄▀▀▄▄█████ █████████████ █████████████ ███▀█████████ ▀▄▄██████████ █████████████ █████████████ █████████████ █████████████ █████████████ ████████████▀ | ████████████▄ ▀▀▀▀▀▀▀██████ █████████████ ▄████████████ ██▄██████████ ████▄████████ █████████████ █░▀▀█████████ ▀▀███████████ █████▄███████ ████▀▄▀██████ ▄▄▄▄▄▄▄██████ ████████████▀ | ........5,000+........ GAMES ......INSTANT...... WITHDRAWALS | ..........HUGE.......... REWARDS ............VIP............ PROGRAM | . PLAY NOW |
|
|
|
joker_josue (OP)
Legendary
Offline
Activity: 1820
Merit: 4908
**In BTC since 2013**
|
|
November 07, 2023, 08:55:21 PM |
|
I think the automatic conversion webp>png is somewhat easy to implement in php
It's pretty simple, but probably only supports converting .webp>.png formats.
I tried to utilize AI to create a Converter Tool that can be applied to the TalkImg Photo Hosting website, and this is the result.
Thanks @bitmover and @taufik123 for the tips. Basically, this is what is already done in the zipping tool: https://www.zip.talkimg.com/Today I dedicated a few more hours and improved the tool, allowing me to convert and compress more types of files: JPG, JPEG, PNG, WebP, BMP, and GIF I know it's not in the final version yet, on the main platform. But for now it can be useful for everyone.
|
|
|
|
|