I added
Code: Select all
RewriteRule ^bl-content/uploads/(.*)$ imgd.php?src=$1 [NC,L]
how do i use it?
if this is your markup:
Code: Select all
![MYIMAGE](imageFile.jpg)
Code: Select all
![MYIMAGE](imageFile.jpg&w=600)
To filter EVERY image add something like
Code: Select all
RewriteRule ^bl-content/uploads/(.*)$ imgd.php?w=1000&src=$1 [NC,L]
Now every image is scaled to a width of 1000px, but you still can overwrite this value in your markup! (see above)
have fun
matto
------
Hi!
Is there a function to resize images?
At the moment i am runnig convert over all pictures
this works, but is destructive and not elegant.for i in *.jpg ; do ls -sh $i; convert -quality 75 -resize 800 $i $i; ls -sh $i ;done
(I literally want to reduce filesizes)
There is a private function to resize images in the image-helper (i think to generate thumbnails?), so i think there must be a better way.
greeting
matto