adobe / adobe/stock-api-sdk

PHP thumbnail size ignored due to incorrect mapping

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
15
Forks
3
PR merge metrics
No merged PRs in 30d

Description

The thumbnail size parameter is incorrect...

'[filters]' should be removed from the thumbnail_size line in order to return the correct sized thumbnail.

https://github.com/adobe/stock-api-sdk/blob/master/stock-api-libphp/src/Models/SearchParameters.php

`'filters_thumbnail_size' => '[filters][thumbnail_size]',`

Also, the size definitions appear different to that of the documentation.

https://github.com/adobe/stock-api-sdk/blob/master/stock-api-libphp/src/Core/Constants.php
Original...
`$_searchParamsThumbSizes = [
'MEDIUM' => 110,
'BIG' => 160,
'XL' => 500,
'XXL' => 1000,
];`

As per docs...
`$_searchParamsThumbSizes = [
'SMALL' => 110,
'MEDIUM' => 160,
'LARGE' => 240,
'XL' => 500,
'XXL' => 1000,
];`

The watermark appears on each image at 240px, how can we remove the thumbnail watermark as per the documentation?

Contributor guide

Open the contributing guide

Research direction

Start with stock-api-libphp/src/Models/SearchParameters.php and stock-api-libphp/src/Core/Constants.php, then compare their thumbnail parameter mapping and size definitions with the linked Adobe Stock documentation. Done means the requested thumbnail sizes and parameter mapping match the documentation; the watermark question remains to be verified against the documented API behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.