image-tools

Resize, compress, convert, crop, and inspect images. Use this skill when the user asks to resize an image, compress a photo, convert image format (PNG to JPG etc), crop an image, get image dimensions/info, or optimize images for web.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "image-tools" with this command: npx skills add dalehurley/phpbot/dalehurley-phpbot-image-tools

Skill: image-tools

When to Use

Use this skill when the user asks to:

  • Resize an image (scale, set dimensions)
  • Compress or optimize an image for web
  • Convert between image formats (PNG, JPG, WebP, GIF, BMP, TIFF)
  • Crop an image
  • Get image info (dimensions, format, file size)
  • Create a thumbnail
  • Rotate or flip an image

Supported Formats

FormatReadWriteNotes
JPEGYesYesLossy, quality adjustable
PNGYesYesLossless, supports transparency
WebPYesYesModern web format
GIFYesYesAnimation supported
BMPYesYesUncompressed
TIFFYesYesProfessional/print

Input Parameters

ParameterRequiredDescriptionExample
actionYesresize, compress, convert, crop, info, rotateresize
inputYesInput image file pathphoto.jpg
outputFor mostOutput file pathresized.jpg
widthFor resizeTarget width in pixels800
heightFor resizeTarget height in pixels600
qualityFor compressJPEG/WebP quality 1-100 (default: 80)75
formatFor convertTarget formatwebp
crop_boxFor cropleft,top,right,bottom in pixels0,0,500,400
angleFor rotateRotation angle in degrees90

Procedure

  1. Determine the action from the user's request

  2. Run the bundled script:

    # Resize
    python3 skills/image-tools/scripts/process.py resize input.jpg --width 800 --output resized.jpg
    
    # Compress
    python3 skills/image-tools/scripts/process.py compress photo.jpg --quality 75 --output compressed.jpg
    
    # Convert format
    python3 skills/image-tools/scripts/process.py convert image.png --format webp --output image.webp
    
    # Crop
    python3 skills/image-tools/scripts/process.py crop photo.jpg --box 0,0,500,400 --output cropped.jpg
    
    # Get info
    python3 skills/image-tools/scripts/process.py info photo.jpg
    
    # Rotate
    python3 skills/image-tools/scripts/process.py rotate photo.jpg --angle 90 --output rotated.jpg
    
  3. The script auto-installs Pillow if needed

  4. Report the result to the user

Bundled Scripts

ScriptTypeDescription
scripts/process.pyPythonResize, compress, convert, crop, inspect, and rotate images

Example

resize photo.jpg to 800px wide
compress this image to 75% quality
convert screenshot.png to webp
crop the image to 500x400
what are the dimensions of this image
make a thumbnail of photo.jpg
rotate the image 90 degrees

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

desktop-control

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

summarize-unread-emails

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

csv-tools

No summary provided by upstream source.

Repository SourceNeeds Review