Coder Social home page Coder Social logo

starmorph / image-seo-optimizer Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 1.46 MB

python scripts to optimize image SEO (search engine optimization)

Python 100.00%
image-classification optimization-tools python python-script python3 search-engine-optimization searchengineoptimization seo seo-meta seo-optimization seo-tools image-optimization

image-seo-optimizer's Introduction

Image SEO Optimization

This python script helps optimize images for search engines by renaming all images in a given directory.

Image SEO Optimizer Starmorph Created by Starmorph Web Design

Features

  • Renames all images in a given directory with a specified new filename and a counter.

Future Features

  • Generate alt text with AI.
  • Image compression
  • Image filetype conversion

Usage

To use the script, call the rename_images function with the following arguments:

rename_images(directory, new_filename, alt_keyword)

directory is the path to the directory containing the images to be renamed and optimized.

new_filename is the new base filename to be used for the images. The counter will be appended to the end of the filename for each image.

For example, the following call will rename and optimize the images in the current directory:

rename_images('./', '3d-abstract-book')

Supported Image Formats

The script currently supports .jpg, .png, and .webp image formats.

Dependencies

The script requires the following libraries: os PIL (Python Imaging Library)

image-seo-optimizer's People

Contributors

starmorph avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.