Download the PHP package antey/instagram-image without Composer

On this page you can find all versions of the php package antey/instagram-image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package instagram-image

php-instagram-image

PHP library for resizing images according to instagram requirements.

tests workflow Coverage Status License: MIT Stand With Ukraine


Setup

Manually by cloning repository, or via composer:

Requirements

Dependencies

This package using php-image-resize and php-image-slice

Usage

This package allow to resize image to any resolution, according to instagram requirements or get optimal resolution for post or gallery (description of features is below).

Instagram resolutions

Resizing

Package allow to simple resize original image into one of instagram images, using one of methods: getProfile, getIgtvCover, getSinglePostSquare, getSinglePostLandscape and getSinglePostPortrait.

Slicing

Different to simple resizing, instagram also allow to publish some multiple images. It can be Stories, Reels, Post with several images. To create this types of images, package provide methods, that resize and slice original image into a pieces. List of this methods: getStories, getReels, getGallerySquare, getGalleryLandscape, getGalleryPortrait.

Optimal resizing

To simplify work with Post, package provide methods, that will automatically find most reliable type (single image or gallery) and resolution (Square, Landscape, Portrait) for given image and return path to resized image, or paths of sliced pieces. It's getSinglePostOptimal, getGalleryOptimal, getPostOptimal.

Available features

Resizing initialization

Resizing simple images

For simple images (like a Profile, Stories, Reels, IGTVCover) resized image (or images gallery) will be created by single specified method.

getProfile

Convert given image into jpeg, resize to profile resolution and return path to result image. If destination empty - will replace original file.

getStories

Convert given image into jpeg, resize to stories resolution and slice into several stories images, if it possible. Return array of paths to result images. If destination empty - will store result file near to original file.

getReels

Convert given image into jpeg, resize to Reels resolution and slice into several reels images, if it possible. Return array of paths to result images. If destination empty - will store result file near to original file.

getIgtvCover

Convert given image into jpeg, resize to IGTVCover resolution and return path to result image. If destination empty - will replace original file.

Resizing post images

Different to simple images, Post resizing is tricky. Instagram allow publishing post int three resolutions: 1080x1080, 1080x565, 1080x1350. Also, there is availability to publish gallery of post images. So, to manipulate post resizing, we need additional set of methods.

getSinglePostSquare

Convert given image into jpeg, resize to square post resolution and return path to result image. If destination empty - will replace original file.

getSinglePostLandscape

Convert given image into jpeg, resize to landscape post resolution and return path to result image. If destination empty - will replace original file.

getSinglePostPortrait

Convert given image into jpeg, resize to portrait post resolution and return path to result image. If destination empty - will replace original file.

getSinglePostOptimal

Convert given image into jpeg, resize to most conformity post resolution and return path to result image. If destination empty - will replace original file.

getGallerySquare

Convert given image into jpeg, slice to several images in square post resolution and return paths to result images. If destination empty - will be stored ner to original image.

getGalleryLandscape

Convert given image into jpeg, slice to several images in landscape post resolution and return paths to result images. If destination empty - will be stored ner to original image.

getGalleryPortrait

Convert given image into jpeg, slice to several images in portrait post resolution and return paths to result images. If destination empty - will be stored ner to original image.

getGalleryOptimal

Convert given image into jpeg, and slice to several images in most conformity post resolution, then return path to result image. If destination empty - will be stored ner to original image.

getOptimalPost

Convert given image into jpeg, and based on image resolution just resize into optimal post resolution, or slice to several images in most conformity post resolution, then return path to result image. If destination empty - will be stored ner to original image.



All versions of instagram-image with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-gd Version *
ext-fileinfo Version *
gumlet/php-image-resize Version 2.0.*
antey/image-slice Version 1.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package antey/instagram-image contains the following files

Loading the files please wait ....