Mizuho Ogino
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Image Generator] Create Image of PDF with different page-dimensionsThe PDF is made by QuarkXPress and its document size is set as A3. You can verify document size via Adobe Acrobat, Illustrator or some pdf editors.
I re-exported it by PREVIEW (Viewer app of Mac OS), and updated it on my site.
The image was generated well.The generator handle most PDFs, even that are mixed with A4 and A3 sizes, and fit them to the size of their first page.
Maybe there is some way to crop PDF automatically, but currently, I think the best way is to re-export the file before uploading.
Thankyou
Forum: Plugins
In reply to: [PDF Image Generator] Create Image of PDF with different page-dimensionsI made a PDF that is mixed with A4 and A3 sizes, and generate it into a JPG.
But I couldn’t reproduce the problem.
The JPG is exactly A4 format and no white area.Could you send the PDF file via my contact form.
https://web.contempo.jp/contact?lang=enI will try to modify code when I have time to test it.
Thank you.
Forum: Plugins
In reply to: [PDF Image Generator] Create Image of PDF with different page-dimensionsIf the first page is exactly A4 format, maybe there is some metadata in your PDF.
I add +repage command in the plugin. I’m not sure it works well. But it’s the only idea I have.Try development version.
https://downloads.www.ads-software.com/plugin/pdf-image-generator.zipIf it works, I’ll put it in next version
Thank you.Forum: Plugins
In reply to: [PDF Image Generator] Display other pdf informations beside the imageOk, I understand what you want.
It’s the default behavior of WordPress that the caption and the link with the image are separated. I’m unwilling to modify it because it makes the plugin complicated.
I am sorry that I could not fulfill your expectations, but it’s not the plugin issue. You need to edit the caption or customize functions.php.
You can edit the image caption.
https://bobwp.com/easily-add-html-photo-caption/You also can customize by using the filter like below.
https://www.whatmarkdid.com/php/default-image-captions-wordpress/thank you
Forum: Plugins
In reply to: [PDF Image Generator] Display other pdf informations beside the imageTry development version.
https://downloads.www.ads-software.com/plugin/pdf-image-generator.zipNow you can choose to put [Caption] in [Media] selector via ATTACHMENT DISPLAY SETTINGS.
Forum: Plugins
In reply to: [PDF Image Generator] Display other pdf informations beside the imageIf you want to insert the caption like an ordinary image file,
you just need edit the caption of the PDF via ATTACHMENT DETAILS and insert it.
No need to add filters.Forum: Plugins
In reply to: [PDF Image Generator] Improving the quality of converted imageIf you just want to improve the quality and the size of images, you can modify by using the option.
Settings > PDF Image Generator > Customize Generated Image propertiesOr, if you want to change whole conversion commands,
see “Modify imageMagick’s Settings” in Other Notes ( https://www.ads-software.com/plugins/pdf-image-generator/other_notes/ )thank you
Forum: Plugins
In reply to: [PDF Image Generator] WP 4.4 is coming soon – no options pageHi.
I appreciate your feedback.But, the option page exists in my test site with wp4.4.beta4, and I have no clue how reproduce the same situation.
Do you have any idea what causes this problem?Thank you.
Forum: Plugins
In reply to: [PDF Image Generator] Fatal ErrorI think “exec” function is not enabled.
Please re-install development version and tell me fatal error message again.
https://downloads.www.ads-software.com/plugin/pdf-image-generator.zipForum: Plugins
In reply to: [PDF Image Generator] Will Pay for IntegrationPossibly in the future, yes.
I’ll mark this post resolved.
Thank you!!Forum: Plugins
In reply to: [PDF Image Generator] Will Pay for IntegrationI searched in file of Easy Digital Downloads and Frontend Submissions. But I couldn’t find the relevant part of codes that corresponds to the screenshot. Could you tell me all plugins related to EDD that you are using.
Forum: Plugins
In reply to: [PDF Image Generator] Improving the quality of converted imageHi noggins
I considered two ways to change imageMagick conversion command. One is add setting in the plugin page as your advice, and the other is applying filter to it.
Anyway, some people need to change whole conversion commands. It is sure that filters allow user to modify more freely.
I hope the filter helps you.
Thank you.
Forum: Plugins
In reply to: [PDF Image Generator] Custom convertAh! I see.
I replaced the argument before {$file}[0] and hook to whole convert text.
It allows you to set -crop, -trim and any properties.
Download and replace the plugin 1.3.3 or development version.Thank you.
For ImageMagick user.
function pigen_filter_convert_file_basename ( $file_basename ){ $file_basename = str_replace( '.jpg', '.png', $file_basename ); return $file_basename; }; add_filter( 'pigen_filter_convert_file_basename', 'pigen_filter_convert_file_basename' ); function pigen_filter_convert_imageMagick ( $imageMagick, $before_name, $after_name ){ $imageMagick = "convert -density 150 -quality 80 -background black -flatten {$before_name} {$after_name}"; return $imageMagick; }; add_filter( 'pigen_filter_convert_imageMagick', 'pigen_filter_convert_imageMagick', 10, 3 );
For imagick extension user.
function pigen_filter_convert_file_basename ( $file_basename ){ $file_basename = str_replace( '.jpg', '.png', $file_basename ); return $file_basename; }; add_filter( 'pigen_filter_convert_file_basename', 'pigen_filter_convert_file_basename' ); function pigen_filter_convert_imagick ( $imagick ){ $imagick->setImageBackgroundColor( 'black' ); $imagick->setCompressionQuality( 80 ); $imagick->setImageFormat( 'png' ); return $imagick; }; add_filter( 'pigen_filter_convert_imagick', 'pigen_filter_convert_imagick' );
!!
Yes.
Line 211 should be wp_get_attachment_url().
Also line 212 should be get_attachment_link().I upddated to 1.3.3.
Thanks a lot.Forum: Plugins
In reply to: [PDF Image Generator] Custom convertI updated to 1.3.3. and added three filters. You can modify your own imageMagick’s behavior, now .
Sample usage for imageMagick user.
function pigen_filter_convert_file_basename ( $file_basename ){ $file_basename = str_replace( '.jpg', '.png', $file_basename ); return $file_basename; }; add_filter( 'pigen_filter_convert_file_basename', 'pigen_filter_convert_file_basename' ); function pigen_filter_convert_imageMagick ( $imageMagick ){ return '-density 72 -quality 80 -background black -flatten'; }; add_filter( 'pigen_filter_convert_imageMagick', 'pigen_filter_convert_imageMagick' );
Sample usage for imagick extension user.
function pigen_filter_convert_file_basename ( $file_basename ){ $file_basename = str_replace( '.jpg', '.png', $file_basename ); return $file_basename; }; add_filter( 'pigen_filter_convert_file_basename', 'pigen_filter_convert_file_basename' ); function pigen_filter_convert_imagick ( $imagick ){ $imagick->setImageBackgroundColor( 'black' ); $imagick->setCompressionQuality( 80 ); $imagick->setImageFormat( 'png' ); return $imagick; }; add_filter( 'pigen_filter_convert_imagick', 'pigen_filter_convert_imagick' );