PHP Classes

Manejo Imagenes: API to perform image manipulation operations

Recommend this page to a friend!

  Author Author  
Picture of Alfredo Rodriguez
Name: Alfredo Rodriguez <contact>
Classes: 2 packages by
Country: Costa Rica Costa Rica
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download Download .zip .tar.gz  
This package provides an API to perform image manipulation operations.

It provides a class that can handle several types of requests to perform operations on images.

Currently it can:

- Store image data in a database

- Rotate an image

- Crop an image

- Make a thumbnail

Details

Desarrolla JARS Costa Rica

Información del Proyecto

API de conexión App Movil

Configuración

Config.php

define('_MYSQL_SERVER', 'localhost');
define('_MYSQL_USER', 'DBUSER');
define('_MYSQL_PASSWORD', 'DBPASS');
define('_MYSQL_DATABASE', 'DBNAME');

ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(E_ALL);

RHApi.php

El archivo contiene las rutas que se utilizarán para el llamado de funciones

La mayor parte de los llamados requieren POST

API EndPoints y Request

Cargar Foto al capturar

https://appm.jarscr.com/actualizar/empleadoFoto

Al resultado de la captura se le agregar "image/jpeg;base64," seguido de la cadena de Base64, el conector de la camara devuelve en base64 las imagenes.

Request:
{
    "FotoUpdate": "image/jpeg;base64,bG9nby1wZXJmaWwuanBn",
    "IdEmpleado":1882
}

Result:
{
    "result": "success",
    "Foto": "data:image/jpg;base64,bG9nby1wZXJmaWwuanBn"
}

Rotar Foto

https://appm.jarscr.com/actualizar/imagenrotar

Request: 
{
    "IdEmpleado": 1882,
    "Rotacion": 3
}

Result:
{
    "result": "success",
    "Foto": "data:image/jpg;base64,bG9nby1wZXJmaWwuanBn"
}

Créditos

  • [Alfredo Rodriguez] @jarscr

  Classes of Alfredo Rodriguez  >  Manejo Imagenes  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog (1)  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Manejo Imagenes
Base name: manejo-imagenes
Description: API to perform image manipulation operations
Version: -
PHP version: 5
Licenses: MIT/X Consortium License
The PHP License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Graphics Colors, images, charts and picture formats View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
March 2023
Nominee
Vote
Many PHP applications need to process images in many ways.

This package provides an API that can handle HTTP requests that send images for processing and return the processed image as a response.

The package can store the images sent to the server in a database. This way, the API can perform several image processing operations, and only when the client applications are made the API returns the final image that was processed.

Manuel Lemos

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imageClases (1 file)
Accessible without login Plain text file Config.php Conf. Configuration script
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation
Plain text file RHApi.php Class Class source

  Files folder image Files  /  Clases  
File Role Description
  Plain text file Imagenes.php Class Class source

Download Download all files: manejo-imagenes.tar.gz manejo-imagenes.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
  Files folder image Files  
File Role Description
Files folder imageClases (1 file)
Accessible without login Plain text file Config.php Conf. Configuration script
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation
Plain text file RHApi.php Class Class source

  Files folder image Files  /  Clases  
File Role Description
  Plain text file Imagenes.php Class Class source

Download Download all files: manejo-imagenes.tar.gz manejo-imagenes.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.