Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTK-27425: Show image raw profile for all images #692

Open
wants to merge 2 commits into
base: 5.0.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/packages/encoder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ pumukit_encoder:
PUCHWEBTV:
audio: "audio_broadcastable"
video: "video_broadcastable video_broadcastable_dynamic_quality"
image: "image_broadcastable image_raw_broadcastable"
image: "image_raw_broadcastable"
document: "document_broadcastable"
PUCHPODCAST:
audio: "audio_broadcastable"
Expand Down
2 changes: 1 addition & 1 deletion src/Pumukit/EncoderBundle/Services/ProfileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,6 @@ private function imageRawProfiles(): array

private function imageGenericProfiles(): array
{
return array_filter($this->profiles, function ($profile) { return isset($profile['image']) && true === $profile['image'] && false === $profile['master'] && !str_contains($profile['tags'], 'raw'); });
return array_filter($this->profiles, function ($profile) { return isset($profile['image']) && true === $profile['image'] && false === $profile['master']; });
}
}
4 changes: 0 additions & 4 deletions src/Pumukit/EncoderBundle/Services/ProfileValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ public function searchBestProfileForFile(string $genericProfile, string $pathFil
}

if (str_contains($mimeType, 'audio/')) {
if ('broadcastable' === $genericProfile) {
return 'audio_broadcastable';
}

return 'master_copy';
}

Expand Down
Loading