@@ -113,28 +113,28 @@ func TestImageTransformBasic(t *testing.T) {
113113 assertWidthHeight (resizedAndRotated , 125 , 200 )
114114
115115 assertWidthHeight (resized , 300 , 200 )
116- c .Assert (resized .RelPermalink (), qt .Equals , "/a/sunset_hu_d2115125d9324a79 .jpg" )
116+ c .Assert (resized .RelPermalink (), qt .Equals , "/a/sunset_hu_f4f15cdbaaca3b2d .jpg" )
117117
118118 fitted , err := resized .Fit ("50x50" )
119119 c .Assert (err , qt .IsNil )
120- c .Assert (fitted .RelPermalink (), qt .Equals , "/a/sunset_hu_c2c98e06123b048e .jpg" )
120+ c .Assert (fitted .RelPermalink (), qt .Equals , "/a/sunset_hu_c9781e950a09210 .jpg" )
121121 assertWidthHeight (fitted , 50 , 33 )
122122
123123 // Check the MD5 key threshold
124124 fittedAgain , _ := fitted .Fit ("10x20" )
125125 fittedAgain , err = fittedAgain .Fit ("10x20" )
126126 c .Assert (err , qt .IsNil )
127- c .Assert (fittedAgain .RelPermalink (), qt .Equals , "/a/sunset_hu_dc9e89c10109de72 .jpg" )
127+ c .Assert (fittedAgain .RelPermalink (), qt .Equals , "/a/sunset_hu_78c1665fdce5ec4d .jpg" )
128128 assertWidthHeight (fittedAgain , 10 , 7 )
129129
130130 filled , err := image .Fill ("200x100 bottomLeft" )
131131 c .Assert (err , qt .IsNil )
132- c .Assert (filled .RelPermalink (), qt .Equals , "/a/sunset_hu_b9f6d350738928fe .jpg" )
132+ c .Assert (filled .RelPermalink (), qt .Equals , "/a/sunset_hu_b3e01daae854e587 .jpg" )
133133 assertWidthHeight (filled , 200 , 100 )
134134
135135 smart , err := image .Fill ("200x100 smart" )
136136 c .Assert (err , qt .IsNil )
137- c .Assert (smart .RelPermalink (), qt .Equals , "/a/sunset_hu_6fd390e7b0d26f0b .jpg" )
137+ c .Assert (smart .RelPermalink (), qt .Equals , "/a/sunset_hu_622a1375d91d9312 .jpg" )
138138 assertWidthHeight (smart , 200 , 100 )
139139
140140 // Check cache
@@ -144,12 +144,12 @@ func TestImageTransformBasic(t *testing.T) {
144144
145145 cropped , err := image .Crop ("300x300 topRight" )
146146 c .Assert (err , qt .IsNil )
147- c .Assert (cropped .RelPermalink (), qt .Equals , "/a/sunset_hu_3df036e11f4ddd43 .jpg" )
147+ c .Assert (cropped .RelPermalink (), qt .Equals , "/a/sunset_hu_9016246670a22728 .jpg" )
148148 assertWidthHeight (cropped , 300 , 300 )
149149
150150 smartcropped , err := image .Crop ("200x200 smart" )
151151 c .Assert (err , qt .IsNil )
152- c .Assert (smartcropped .RelPermalink (), qt .Equals , "/a/sunset_hu_12e2d26de89b464b .jpg" )
152+ c .Assert (smartcropped .RelPermalink (), qt .Equals , "/a/sunset_hu_78e9677f68b821ed .jpg" )
153153 assertWidthHeight (smartcropped , 200 , 200 )
154154
155155 // Check cache
@@ -216,15 +216,15 @@ func TestImageTransformFormat(t *testing.T) {
216216
217217 imagePng , err := image .Resize ("450x png" )
218218 c .Assert (err , qt .IsNil )
219- c .Assert (imagePng .RelPermalink (), qt .Equals , "/a/sunset_hu_e8b9444dcf2e75ef .png" )
219+ c .Assert (imagePng .RelPermalink (), qt .Equals , "/a/sunset_hu_63ccccb11ff4e285 .png" )
220220 c .Assert (imagePng .ResourceType (), qt .Equals , "image" )
221221 assertExtWidthHeight (imagePng , ".png" , 450 , 281 )
222222 c .Assert (imagePng .Name (), qt .Equals , "sunset.jpg" )
223223 c .Assert (imagePng .MediaType ().String (), qt .Equals , "image/png" )
224224
225225 imageGif , err := image .Resize ("225x gif" )
226226 c .Assert (err , qt .IsNil )
227- c .Assert (imageGif .RelPermalink (), qt .Equals , "/a/sunset_hu_f80842d4c3789345 .gif" )
227+ c .Assert (imageGif .RelPermalink (), qt .Equals , "/a/sunset_hu_6d1f23c09eddc748 .gif" )
228228 c .Assert (imageGif .ResourceType (), qt .Equals , "image" )
229229 assertExtWidthHeight (imageGif , ".gif" , 225 , 141 )
230230 c .Assert (imageGif .Name (), qt .Equals , "sunset.jpg" )
@@ -247,7 +247,7 @@ func TestImagePermalinkPublishOrder(t *testing.T) {
247247 }()
248248
249249 check1 := func (img images.ImageResource ) {
250- resizedLink := "/a/sunset_hu_3910bca82e28c9d6 .jpg"
250+ resizedLink := "/a/sunset_hu_3a097ae28aebc166 .jpg"
251251 c .Assert (img .RelPermalink (), qt .Equals , resizedLink )
252252 assertImageFile (c , spec .PublishFs , resizedLink , 100 , 50 )
253253 }
@@ -288,12 +288,12 @@ func TestImageBugs(t *testing.T) {
288288 c .Assert (err , qt .IsNil )
289289 c .Assert (resized , qt .Not (qt .IsNil ))
290290 c .Assert (resized .Width (), qt .Equals , 200 )
291- c .Assert (resized .RelPermalink (), qt .Equals , "/a/1234567890qwertyuiopasdfghjklzxcvbnm5to6eeeeee7via8eleph_hu_951d3980b18c52a9 .jpg" )
291+ c .Assert (resized .RelPermalink (), qt .Equals , "/a/1234567890qwertyuiopasdfghjklzxcvbnm5to6eeeeee7via8eleph_hu_a6f31c42e1afef07 .jpg" )
292292 resized , err = resized .Resize ("100x" )
293293 c .Assert (err , qt .IsNil )
294294 c .Assert (resized , qt .Not (qt .IsNil ))
295295 c .Assert (resized .Width (), qt .Equals , 100 )
296- c .Assert (resized .RelPermalink (), qt .Equals , "/a/1234567890qwertyuiopasdfghjklzxcvbnm5to6eeeeee7via8eleph_hu_1daa203572ecd6ec .jpg" )
296+ c .Assert (resized .RelPermalink (), qt .Equals , "/a/1234567890qwertyuiopasdfghjklzxcvbnm5to6eeeeee7via8eleph_hu_14e106419fe28039 .jpg" )
297297 })
298298
299299 // Issue #6137
@@ -391,7 +391,7 @@ func TestImageResize8BitPNG(t *testing.T) {
391391 resized , err := image .Resize ("800x" )
392392 c .Assert (err , qt .IsNil )
393393 c .Assert (resized .MediaType ().Type , qt .Equals , "image/png" )
394- c .Assert (resized .RelPermalink (), qt .Equals , "/a/gohugoio_hu_fe2b762e9cac406c .png" )
394+ c .Assert (resized .RelPermalink (), qt .Equals , "/a/gohugoio_hu_626cfc4db4222bfe .png" )
395395 c .Assert (resized .Width (), qt .Equals , 800 )
396396}
397397
0 commit comments