BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> Scripts for Your Website
  New Posts New Posts RSS Feed - img2css
  FAQ FAQ  Forum Search   Register Register  Login Login

img2css

 Post Reply Post Reply
Author
Message
Bravo12 View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jun 07 2013
Location: Italy
Status: Offline
Points: 453
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bravo12 Quote  Post ReplyReply Direct Link To This Post Topic: img2css
    Posted: Feb 02 2018 at 11:17am
Here is another very useful tool. It converts images in css code...(for an image 250x270 I had about 1,3 mb in text)
Try it and see yourself the result

http://javier.xyz/img2css/

Wink

Back to Top
digizar View Drop Down
Senior Member
Senior Member
Avatar

Joined: Dec 30 2015
Location: Germany Frankfu
Status: Offline
Points: 739
Post Options Post Options   Thanks (0) Thanks(0)   Quote digizar Quote  Post ReplyReply Direct Link To This Post Posted: Feb 03 2018 at 3:04pm
For what purpose would that be used?
This question is not to offend you, it's a simple question.
I can not figure out any reason for such conversion.
___________________________________
Ask questions only if there is no answer yet.
https://blumendigi.com
Back to Top
Bravo12 View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jun 07 2013
Location: Italy
Status: Offline
Points: 453
Post Options Post Options   Thanks (1) Thanks(1)   Quote Bravo12 Quote  Post ReplyReply Direct Link To This Post Posted: Feb 03 2018 at 7:30pm
Well, it is possible using it, for example, if you need to protect an image so it can't be cloned... try yourself and see what's happens... this makes avoid the use of some plugin used in Word Press
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (1) Thanks(1)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Feb 04 2018 at 12:31pm
One can always take a screenshot (in this case with any zoom factor so he may obtain a very high-quality copy)...
Back to Top
Bravo12 View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jun 07 2013
Location: Italy
Status: Offline
Points: 453
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bravo12 Quote  Post ReplyReply Direct Link To This Post Posted: Feb 05 2018 at 9:46am
Possible, but try to see the difference between the normal image and the one made in css.
If you see the code, it takes every dot of the image and apply a rendering on that. After the image is completed, the rendering will be the best than before, 'cause treated in deep singular data, dot by dot...
I know it's not the best, but if needed...

Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Feb 05 2018 at 1:16pm
It may be efficient for small image especially if they nee dto change according to media query (screen size or printer).
Back to Top
Bravo12 View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jun 07 2013
Location: Italy
Status: Offline
Points: 453
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bravo12 Quote  Post ReplyReply Direct Link To This Post Posted: Feb 08 2018 at 4:57pm
This for sure, 'cause for an image 250x250 px it gives a file of about 1,3 mb...in effect it can be useful for picture like those for documents...


Edited by Bravo12 - Feb 08 2018 at 4:58pm
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Feb 08 2018 at 9:27pm
1) 1.3mb is a lot for this size but 2) usually the data will be automatically gzipped (compressed) so it will be less to load and 3) it heavily depends on the image, whether it has big patches of monotone color
Back to Top
Bravo12 View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jun 07 2013
Location: Italy
Status: Offline
Points: 453
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bravo12 Quote  Post ReplyReply Direct Link To This Post Posted: Feb 09 2018 at 11:29am
Exact! I tried to gzip the txt file obtained and it results "288 KB (294.912 byte)"and surely as it is a color image it could be less when converted to a b/w one... anyway it is not a tool to be used always as we can see it uses a lot of space...
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.062 seconds.