![]() |
Imagemagick Question
This code is working fine, however, when I right click on the image to save it, it doesnt have a .jpg extension, any idea why?
I have the header and extension in the code which should be enough to render it as a .jpg shouldnt it? Quote:
Quote:
|
try
header('Content-Disposition: attachment; filename="whatever.jpg"'); |
Doing a church sign generator? I used to love those.
I can't test the code since it uses "imagick", some php extension, but unless there's a reason you have to use that, look into PHP's "imagecreate" function. And unless you have to use PHP, you can do this kind of stuff with just Javascript and canvas. Edit: I bothered to RTFM on the "Imagick" github when I was about to close the tab and it's in the Debian repo, so I tried it. Right clicking and saving in Firefox provides the extension, though it's .jpeg, not .jpg, ie "page.php.jpeg". |
Quote:
Any idea about the image overlay / watermark thing? :Oh crap *edit* How do I stop the whatever.jpg auto downloading on page load? |
Quote:
Just have to figure out why the image overlay stuff isnt working lol |
One more issue I just discovered...
Quote:
|
Quote:
What about a rewriterule so the image URL ends in .jpg? line1|line2|line3.jpg or something. |
All times are GMT -7. The time now is 10:38 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc