PHP thumbnail size ignored due to incorrect mapping
- 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
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