Pages:
Author

Topic: TalkImg.com - Image hosting for BitcoinTalk - page 16. (Read 15544 times)

legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
November 08, 2023, 03:44:17 AM
Hey joker_josue  Smiley
I was facing some issue with talkimg. Not every time but I would get this error. Might be worth reporting, so here it is.


This error normally occurs when the image being loaded is larger than 2.5MB (3MB).
If you click on "error report" you will see more details. (I have to think of a way to improve this information.)
sr. member
Activity: 322
Merit: 318
The Alliance Of Bitcointalk Translators - ENG>BAN
November 08, 2023, 12:22:34 AM
[…]
Hey joker_josue  Smiley
I was facing some issue with talkimg. Not every time but I would get this error. Might be worth reporting, so here it is.

 
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
November 07, 2023, 09:56:42 PM
But why a separate domain with TalkImg?
And there is no link embedded in TalkImg about this Zip Tool?

Is this because the Zip tool is still in beta and needs to be tested before being embedded on the TalkImg front page so that users can access it more easily.

Exactly. Since it is still in Beta version, I am not highlighting it more than here in the topic.
But, as it is already in an advanced Beta version, perhaps in the next few days, I will add a link to the main page. We'll see. Wink
legendary
Activity: 2646
Merit: 1815
Rollbit.com | Crypto Futures
November 07, 2023, 09:36:24 PM
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.  Wink
Zip tool, a tool that will be very useful and can be developed with many features.

But why a separate domain with TalkImg?
And there is no link embedded in TalkImg about this Zip Tool?

Is this because the Zip tool is still in beta and needs to be tested before being embedded on the TalkImg front page so that users can access it more easily.

Maybe if it is embedded on the TalkImg front page it will look like this

 
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
November 07, 2023, 04: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.  Wink
legendary
Activity: 2646
Merit: 1815
Rollbit.com | Crypto Futures
November 07, 2023, 10:48:21 AM
I think the automatic conversion webp>png is somewhat easy to implement in php

I just googled it:

Code:
// 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-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.

HTML:
Code:



    Image Converter
    


    

        

Image Converter


        

            

                
                
            

            

                
                
            

            
        

        

    


    


JavaScript (image-converter.js):
Code:
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 = '

Gambar yang dikonversi:

';
        };
        image.src = event.target.result;
    };
    reader.readAsDataURL(imageFile);
});

CSS (style.css):
Code:
.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
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
November 07, 2023, 10:15:17 AM
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:

Code:
// 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-php

I 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.
legendary
Activity: 2646
Merit: 1815
Rollbit.com | Crypto Futures
November 07, 2023, 10:11:28 AM
.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

legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
November 07, 2023, 09:56:31 AM
I found something wrong while uploading an image. I saved this image in my local mobile drive and tried to upload it

https://kdfrases.com/webp/frases-imagens/frase-o-progresso-e-precisamente-aquilo-nao-previsto-pelas-regras-e-regulamentos-ludwig-von-mises-129917.webp

.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.
hero member
Activity: 862
Merit: 662
November 07, 2023, 09:54:31 AM
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.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
November 07, 2023, 09:45:16 AM
.webp
The error message could be improved, but webp isn't supported by the forum.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
November 07, 2023, 09:42:29 AM
Hello joker_josue

I found something wrong while uploading an image. I saved this image in my local mobile drive and tried to upload it

https://kdfrases.com/webp/frases-imagens/frase-o-progresso-e-precisamente-aquilo-nao-previsto-pelas-regras-e-regulamentos-ludwig-von-mises-129917.webp

Got this error message



legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
November 02, 2023, 03: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.  Wink
legendary
Activity: 4256
Merit: 8551
'The right to privacy matters'
November 02, 2023, 02:11:07 PM
just sent a monthly donation to


bc1qhwnncpdd8gfzqwjkk9n052wf7g9mvks3xaa7qa

0.001. it is nice to see you getting some support
legendary
Activity: 2646
Merit: 1815
Rollbit.com | Crypto Futures
November 01, 2023, 06: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.
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
November 01, 2023, 11:36:38 AM
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.
legendary
Activity: 2646
Merit: 1815
Rollbit.com | Crypto Futures
November 01, 2023, 08:06:49 AM
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.

legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
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.  Tongue
copper member
Activity: 1526
Merit: 2890
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.
legendary
Activity: 2212
Merit: 7064
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. Wink
Pages:
Jump to: