Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit bc8da04

Browse files
committed
Enable trascoding for VIP-GO sites
1 parent afedbd1 commit bc8da04

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

admin/rt-transcoder-handler.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,12 +1523,22 @@ public function get_transcoding_status( $post_id ) {
15231523
*/
15241524
public function after_upload_pdf( $post_id ) {
15251525

1526+
$allow_transcoding = true;
1527+
15261528
// If it have native support, skip the use of transcoder server.
15271529
if ( extension_loaded( 'imagick' ) &&
15281530
class_exists( 'Imagick', false ) &&
15291531
class_exists( 'ImagickPixel', false ) &&
15301532
version_compare( phpversion( 'imagick' ), '2.2.0', '>=' )
15311533
) {
1534+
$allow_transcoding = false;
1535+
}
1536+
1537+
if ( defined( 'VIP_GO_ENV' ) || defined( 'VIP_GO_APP_ENVIRONMENT' ) ) {
1538+
$allow_transcoding = true;
1539+
}
1540+
1541+
if ( false === $allow_transcoding ) {
15321542
return;
15331543
}
15341544

0 commit comments

Comments
 (0)