@@ -4,37 +4,119 @@ import ReleaseVideoPlaceholder from "../../assets/img/audacity-placeholder.webp"
44import PromoVideoPlaceholder from " ../../assets/img/promo/ace-placeholder.webp" ;
55import FeaturedVideo from " ../video/FeaturedVideo" ;
66
7+ // Generate WebP format thumbnails
78const releaseVideoPlaceholderImage = await getImage ({
89 src: ReleaseVideoPlaceholder ,
910 format: ' webp' ,
10- width: 736 ,
11- quality: 80 ,
11+ width: 732 ,
12+ height: 412 , // 16:9 aspect ratio
13+ quality: 75 ,
14+ });
15+
16+ const releaseVideoPlaceholderImageMobile = await getImage ({
17+ src: ReleaseVideoPlaceholder ,
18+ format: ' webp' ,
19+ width: 400 ,
20+ height: 225 , // Maintaining the same aspect ratio
21+ quality: 75 ,
1222});
1323
1424const featuredVideoPlaceholderImage = await getImage ({
1525 src: PromoVideoPlaceholder ,
1626 format: ' webp' ,
17- width: 736 ,
18- quality: 80 ,
27+ width: 732 ,
28+ height: 412 ,
29+ quality: 75 ,
30+ });
31+
32+ const featuredVideoPlaceholderImageMobile = await getImage ({
33+ src: PromoVideoPlaceholder ,
34+ format: ' webp' ,
35+ width: 400 ,
36+ height: 225 ,
37+ quality: 75 ,
38+ });
39+
40+ // Generate AVIF format thumbnails (superior compression)
41+ const releaseVideoPlaceholderImageAvif = await getImage ({
42+ src: ReleaseVideoPlaceholder ,
43+ format: ' avif' ,
44+ width: 732 ,
45+ height: 412 ,
46+ quality: 70 ,
47+ });
48+
49+ const releaseVideoPlaceholderImageMobileAvif = await getImage ({
50+ src: ReleaseVideoPlaceholder ,
51+ format: ' avif' ,
52+ width: 400 ,
53+ height: 225 ,
54+ quality: 70 ,
55+ });
56+
57+ const featuredVideoPlaceholderImageAvif = await getImage ({
58+ src: PromoVideoPlaceholder ,
59+ format: ' avif' ,
60+ width: 732 ,
61+ height: 412 ,
62+ quality: 70 ,
63+ });
64+
65+ const featuredVideoPlaceholderImageMobileAvif = await getImage ({
66+ src: PromoVideoPlaceholder ,
67+ format: ' avif' ,
68+ width: 400 ,
69+ height: 225 ,
70+ quality: 70 ,
1971});
2072
2173const releaseVideo = {
22- title:" Our latest release" ,
23- label:" Master channel, new realtime effects & more!" ,
24- placeholderImage: releaseVideoPlaceholderImage .src ,
25- imageAltText: " Video thumbnial: Audacity 3.6 - New effects" ,
26- videoURL:" https://www.youtube-nocookie.com/embed/f5TXPUOFH6A?autoplay=1" ,
74+ title: " Our latest release" ,
75+ label: " Master channel, new realtime effects & more!" ,
76+ placeholderImages: {
77+ webp: {
78+ default: releaseVideoPlaceholderImage .src ,
79+ mobile: releaseVideoPlaceholderImageMobile .src ,
80+ },
81+ avif: {
82+ default: releaseVideoPlaceholderImageAvif .src ,
83+ mobile: releaseVideoPlaceholderImageMobileAvif .src ,
84+ }
85+ },
86+ imageAltText: " Video thumbnail: Audacity 3.6 - New effects" ,
87+ videoURL: " https://www.youtube-nocookie.com/embed/f5TXPUOFH6A?autoplay=1" ,
88+ dimensions: {
89+ width: 732 ,
90+ height: 412 ,
91+ mobileWidth: 400 ,
92+ mobileHeight: 225
93+ }
2794}
2895
2996const promoVideo = {
30- title:" ACE Studio showcase" ,
31- label:" Ad: Turn your lyrics into song with ACE Studio, the AI singing voice generator." ,
32- placeholderImage: featuredVideoPlaceholderImage .src ,
97+ title: " ACE Studio showcase" ,
98+ label: " Ad: Turn your lyrics into song with ACE Studio, the AI singing voice generator." ,
99+ placeholderImages: {
100+ webp: {
101+ default: featuredVideoPlaceholderImage .src ,
102+ mobile: featuredVideoPlaceholderImageMobile .src ,
103+ },
104+ avif: {
105+ default: featuredVideoPlaceholderImageAvif .src ,
106+ mobile: featuredVideoPlaceholderImageMobileAvif .src ,
107+ }
108+ },
33109 imageAltText: " Video thumbnail: What is ACE studio?" ,
34- videoURL:" https://www.youtube-nocookie.com/embed/QTlB5UR-IEE?autoplay=1" ,
35- CTA: true ,
110+ videoURL: " https://www.youtube-nocookie.com/embed/QTlB5UR-IEE?autoplay=1" ,
111+ dimensions: {
112+ width: 732 ,
113+ height: 412 ,
114+ mobileWidth: 400 ,
115+ mobileHeight: 225
116+ },
117+ CTA: true ,
36118 ctaText: " Try for free" ,
37- ctaURL:" https://www.musehub.com/app/ace-studio?utm_source=au-web&utm_medium=mh-app-cta&utm_campaign=au-web-mh-app-ace-studio"
119+ ctaURL: " https://www.musehub.com/app/ace-studio?utm_source=au-web&utm_medium=mh-app-cta&utm_campaign=au-web-mh-app-ace-studio"
38120}
39121---
40122
@@ -46,22 +128,24 @@ const promoVideo = {
46128 client:load
47129 title ={ releaseVideo .title }
48130 label ={ releaseVideo .label }
49- placeholderImage ={ releaseVideo .placeholderImage }
131+ placeholderImages ={ releaseVideo .placeholderImages }
50132 imageAltText ={ releaseVideo .imageAltText }
51133 videoURL ={ releaseVideo .videoURL }
134+ dimensions ={ releaseVideo .dimensions }
52135 matomoEventName ={ releaseVideo .title }
53136 />
54137 <FeaturedVideo
55138 client:load
56139 title ={ promoVideo .title }
57140 label ={ promoVideo .label }
58- placeholderImage ={ promoVideo .placeholderImage }
141+ placeholderImages ={ promoVideo .placeholderImages }
59142 imageAltText ={ promoVideo .imageAltText }
60143 videoURL ={ promoVideo .videoURL }
144+ dimensions ={ promoVideo .dimensions }
61145 CTA ={ promoVideo .CTA }
62146 ctaText ={ promoVideo .ctaText }
63147 ctaURL ={ promoVideo .ctaURL }
64148 matomoEventName ={ promoVideo .title }
65149 />
66150 </div >
67- </section >
151+ </section >
0 commit comments