Quantcast

Jump to content


Photo

Php code help


  • Please log in to reply
11 replies to this topic

#1 Chameleon

Chameleon
  • vampire or somesuch

  • 627 posts


Users Awards

Posted 17 October 2014 - 12:19 AM

Looking for someone to help with some php code.  Might also help if you knew something about Image Magick or Vbulletin - or not - I dunno.  Willing to pay.  Message me.



#2 Eefi

Eefi
  • 1337 h4x0r

  • 1626 posts


Users Awards

Posted 17 October 2014 - 04:04 AM

You can just try and ask the question here? Or is it about sensitive data..



#3 Chameleon

Chameleon
  • vampire or somesuch

  • 627 posts


Users Awards

Posted 17 October 2014 - 08:29 PM

@Eefi

I really have no clue if it's sensitive - my husband asked me if anyone here would know the answer.  I said of course ya'll would because some of you guys are brilliant with this stuff.  So he sent me stuff in an email to c&p to anyone who answered.  

 

So this is what I got:

 

need exif stripping of all jpg uploads on vBulletin 4.2.2.
 
Image Magick is installed.
 
it should be something like:
<?php
$img = new Imagick($image_to_strip);
$exif = $img->getImageProperties('exif:*');
var_dump($exif);
$img->stripImage();
$vB_image_var = $img; // where the stripped jpg gets handed back to the main code
$img->destroy();
?>
 
this should be integrated into the attached file, but that might not be true.
 
a diff needs to be included.


#4 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 18 October 2014 - 08:42 AM

Do you not need to use writeImage after you've done stripImage? I'm not too familiar with imagick.



#5 Chameleon

Chameleon
  • vampire or somesuch

  • 627 posts


Users Awards

Posted 18 October 2014 - 09:02 AM

Do you not need to use writeImage after you've done stripImage? I'm not too familiar with imagick.

I'll ask him and get back with you.  Thanks for looking and replying!



#6 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 18 October 2014 - 09:09 AM

If he still can't get it to work in memory then after using stripImage just use writeImage and then readImage again. When it writes the image it should save the file with exif data removed.



#7 Chameleon

Chameleon
  • vampire or somesuch

  • 627 posts


Users Awards

Posted 18 October 2014 - 10:04 AM

Thank you!  I've left him a message.  (He worked all last night, so he's asleep right now.)



#8 Dan

Dan
  • Resident Know-It-All

  • 6382 posts


Users Awards

Posted 18 October 2014 - 11:35 AM

@Chameleon The programmers here can often be found in our IRC channel (#neocodex on freenode), it might be easier for us to talk this over with your husband in there. :)



#9 Chameleon

Chameleon
  • vampire or somesuch

  • 627 posts


Users Awards

Posted 18 October 2014 - 12:40 PM

@Dan  I'll pass that along as well, thanks.  I'm sure it would be easier if everyone knew wth each other were talking about.  Having the middleman (me) not having a clue what they're pasting/asking surely isn't a help.



#10 Adam

Adam
  • Coffee God


  • 4771 posts


Users Awards

Posted 18 October 2014 - 12:53 PM

http://www.neocodex....rrals&reff=4169

 

He can always use this link, and then come talk to us here :D



#11 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 18 October 2014 - 01:09 PM

He'd be better off using this link:

 

http://www.neocodex....rals&reff=53780



#12 Adam

Adam
  • Coffee God


  • 4771 posts


Users Awards

Posted 18 October 2014 - 01:15 PM

Stop that!

:ali:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users