Skip to content
This repository has been archived by the owner on Jul 19, 2020. It is now read-only.

denzveloper/imagedir2base64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imagedir2base64 (PHP+Codeigniter)

Get image on a directory then optimize all image to Webp (chrome based browser) or Jpeg (other based browser) and encode to base64

just call this file then call function with directory.

ex: <img src="<?=show('/assets/path/to/image.png')?>">

Tested on system: Manjaro Linux, php73, Apache, Codeigniter 3.x

Maybe load page longer than usual because waiting for render image first

How to Install (Codeigniter)?

  1. Move all to Library
  2. Config (ajust index.png and notfound.png directory)
  3. Call library + Function
  4. move index.png and notfound.png
  5. Run!

other framework or using native php doesnt support by me. but you can modify it to run other framework/navive php

About

Get image on a directory then encode to base64

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages