|
158 | 158 | rotation: 90, |
159 | 159 | blur: 10, |
160 | 160 | named: "some_name", |
161 | | - overlay_x: 35, |
162 | | - overlay_y: 35, |
163 | | - overlay_focus: "bottom", |
164 | | - overlay_height: 20, |
165 | | - overlay_width: 20, |
166 | | - overlay_image: "/folder/file.jpg", |
167 | | - overlay_image_trim: false, |
168 | | - overlay_image_aspect_ratio: "4:3", |
169 | | - overlay_image_background: "0F0F0F", |
170 | | - overlay_image_border: "10_0F0F0F", |
171 | | - overlay_image_DPR: 2, |
172 | | - overlay_image_quality: 50, |
173 | | - overlay_image_cropping: "force", |
174 | | - overlay_text: "two words", |
175 | | - overlay_text_font_size: 20, |
176 | | - overlay_text_font_family: "Open Sans", |
177 | | - overlay_text_color: "00FFFF", |
178 | | - overlay_text_transparency: 5, |
179 | | - overlay_text_typography: "b", |
180 | | - overlay_background: "00AAFF55", |
181 | | - overlay_text_encoded: "b3ZlcmxheSBtYWRlIGVhc3k%3D", |
182 | | - overlay_text_width: 50, |
183 | | - overlay_text_background: "00AAFF55", |
184 | | - overlay_text_padding: 40, |
185 | | - overlay_text_inner_alignment: "left", |
186 | | - overlay_radius: 10, |
187 | 161 | progressive: true, |
188 | 162 | lossless: true, |
189 | 163 | trim: 5, |
|
195 | 169 | effect_usm: "2-2-0.8-0.024", |
196 | 170 | effect_contrast: true, |
197 | 171 | effect_gray: true, |
| 172 | + effect_shadow: 'bl-15_st-40_x-10_y-N5', |
| 173 | + effect_gradient: 'from-red_to-white', |
198 | 174 | original: true, |
199 | 175 | raw: 'w-200,h-200' |
200 | 176 | },] |
201 | 177 | } |
202 | 178 | url = url_obj.generate_url(options) |
203 | | - expect(url).to eq("https://imagekit.io/your-imgekit-id/tr:h-300,w-400,ar-4-3,q-40,c-force,cm-extract,fo-left,f-jpeg,r-50,bg-A94D34,b-5-A94D34,rt-90,bl-10,n-some_name,ox-35,oy-35,ofo-bottom,oh-20,ow-20,oi-folder@@file.jpg,oit-false,oiar-4:3,oibg-0F0F0F,oib-10_0F0F0F,oidpr-2,oiq-50,oic-force,ot-two words,ots-20,otf-Open Sans,otc-00FFFF,oa-5,ott-b,obg-00AAFF55,ote-b3ZlcmxheSBtYWRlIGVhc3k%3D,otw-50,otbg-00AAFF55,otp-40,otia-left,or-10,pr-true,lo-true,t-5,md-true,cp-true,di-folder@@file.jpg,dpr-3,e-sharpen-10,e-usm-2-2-0.8-0.024,e-contrast-true,e-grayscale-true,orig-true,w-200,h-200/default-image.jpg") |
| 179 | + expect(url).to eq("https://imagekit.io/your-imgekit-id/tr:h-300,w-400,ar-4-3,q-40,c-force,cm-extract,fo-left,f-jpeg,r-50,bg-A94D34,b-5-A94D34,rt-90,bl-10,n-some_name,pr-true,lo-true,t-5,md-true,cp-true,di-folder@@file.jpg,dpr-3,e-sharpen-10,e-usm-2-2-0.8-0.024,e-contrast-true,e-grayscale-true,e-shadow-bl-15_st-40_x-10_y-N5,e-gradient-from-red_to-white,orig-true,w-200,h-200/default-image.jpg") |
204 | 180 | end |
205 | 181 |
|
206 | 182 | it "test_generate_url_with_chained_transformation" do |
|
0 commit comments